Skip to content

Commit

Permalink
Fixing JS admin widget to properly update the field value when copy/p…
Browse files Browse the repository at this point in the history
…aste/cut/undo events occur in any text-input, in addition to manually typing (keyup events etc.)
  • Loading branch information
andrewhayes1979 committed Mar 1, 2017
1 parent 5e6455b commit 1e59585
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ var initDjangoHStoreWidget = function(hstore_field_name, inline_prefix) {
});

// update textarea whenever a field changes
$hstore.delegate('input[type=text]', 'keyup', function() {
$hstore.delegate('input[type=text]', 'input propertychange', function() {
updateTextarea($hstore);
});
};
Expand Down

0 comments on commit 1e59585

Please sign in to comment.