Fix raw tag editor styling for custom data editor

(closes #6427)
This commit is contained in:
Bryan Housel
2019-05-24 11:31:42 -04:00
parent 94a47f05de
commit b4ebaaa01e
2 changed files with 9 additions and 3 deletions
+6 -1
View File
@@ -60,6 +60,7 @@ export function uiDataEditor(context) {
var editor = body.selectAll('.data-editor')
.data([0]);
// enter/update
editor.enter()
.append('div')
.attr('class', 'modal-section data-editor')
@@ -70,6 +71,7 @@ export function uiDataEditor(context) {
var rte = body.selectAll('.raw-tag-editor')
.data([0]);
// enter/update
rte.enter()
.append('div')
.attr('class', 'raw-tag-editor inspector-inner data-editor')
@@ -79,7 +81,10 @@ export function uiDataEditor(context) {
.readOnlyTags([/./])
.tags((_datum && _datum.properties) || {})
.state('hover')
);
)
.selectAll('textarea.tag-text')
.property('disabled', true)
.classed('readonly', true);
}