From 281432fea5a3c87ffafa774c27847ff8d38a819d Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 20 Jun 2013 16:29:00 -0700 Subject: [PATCH] Avoid resetting input values on every change For some reason this invalidates and repaints the entire page. See d2e2d4fbed19573df463cd7b93c575d69a852d9f Fixes #1604. --- js/id/ui/raw_tag_editor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/id/ui/raw_tag_editor.js b/js/id/ui/raw_tag_editor.js index 1e798f157..4970c2f9d 100644 --- a/js/id/ui/raw_tag_editor.js +++ b/js/id/ui/raw_tag_editor.js @@ -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) {