mirror of
https://github.com/FoggedLens/iD.git
synced 2026-03-24 04:50:29 +01:00
Make the raw tags of custom map data selectable/copyable (close #6710)
This commit is contained in:
@@ -83,7 +83,7 @@ export function uiDataEditor(context) {
|
||||
.state('hover')
|
||||
)
|
||||
.selectAll('textarea.tag-text')
|
||||
.property('disabled', true)
|
||||
.attr('readonly', true)
|
||||
.classed('readonly', true);
|
||||
}
|
||||
|
||||
|
||||
@@ -268,12 +268,16 @@ export function uiRawTagEditor(context) {
|
||||
items.selectAll('input.key')
|
||||
.attr('title', function(d) { return d.key; })
|
||||
.call(utilGetSetValue, function(d) { return d.key; })
|
||||
.property('disabled', isReadOnly);
|
||||
.attr('readonly', function(d) {
|
||||
return isReadOnly(d) || null;
|
||||
});
|
||||
|
||||
items.selectAll('input.value')
|
||||
.attr('title', function(d) { return d.value; })
|
||||
.call(utilGetSetValue, function(d) { return d.value; })
|
||||
.property('disabled', isReadOnly);
|
||||
.attr('readonly', function(d) {
|
||||
return isReadOnly(d) || null;
|
||||
});
|
||||
|
||||
items.selectAll('button.remove')
|
||||
.on('mousedown', removeTag); // 'click' fires too late - #5878
|
||||
|
||||
Reference in New Issue
Block a user