diff --git a/js/id/ui/commit.js b/js/id/ui/commit.js index c813d1cf8..6ba09910d 100644 --- a/js/id/ui/commit.js +++ b/js/id/ui/commit.js @@ -52,7 +52,10 @@ iD.ui.Commit = function(context) { var commentField = commentSection.append('textarea') .attr('placeholder', t('commit.description_placeholder')) - .property('value', context.storage('comment') || ''); + .property('value', context.storage('comment') || '') + .on('keyup.save', function () { + context.storage('comment', this.value); + }); commentField.node().select();