Avoid resetting input values on every change

For some reason this invalidates and repaints the
entire page.

See d2e2d4fbed

Fixes #1604.
This commit is contained in:
John Firebaugh
2013-06-20 16:29:00 -07:00
parent d5892fe1b3
commit 281432fea5
+3 -3
View File
@@ -96,12 +96,12 @@ iD.ui.RawTagEditor = function(context) {
});
$items.select('input.key')
.property('value', function(d) { return d.key; })
.value(function(d) { return d.key; })
.on('blur', keyChange)
.on('change', keyChange);
$items.select('input.value')
.property('value', function(d) { return d.value; })
.value(function(d) { return d.value; })
.on('blur', valueChange)
.on('change', valueChange)
.on('keydown.push-more', pushMore);
@@ -152,7 +152,7 @@ iD.ui.RawTagEditor = function(context) {
.fetcher(function(value, __, callback) {
taginfo.values({
debounce: true,
key: key.property('value'),
key: key.value(),
geometry: context.geometry(id),
query: value
}, function(err, data) {