Skip to content

Commit

Permalink
Fix issue where spaces couldn't be typed in the changeset comment (re:
Browse files Browse the repository at this point in the history
  • Loading branch information
quincylvania committed Jun 11, 2020
1 parent cc5da9b commit 4467c4a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion modules/ui/fields/address.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ export function uiFieldAddress(field, context) {
.each(function (subfield) {
var key = field.key + ':' + subfield.id;

var value = context.cleanTagValue(this.value);
var value = this.value;
if (!onInput) value = context.cleanTagValue(value);

// don't override multiple values with blank string
if (Array.isArray(_tags[key]) && !value) return;
Expand Down
3 changes: 2 additions & 1 deletion modules/ui/fields/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ export function uiFieldText(field, context) {
function change(onInput) {
return function() {
var t = {};
var val = context.cleanTagValue(utilGetSetValue(input));
var val = utilGetSetValue(input);
if (!onInput) val = context.cleanTagValue(val);

// don't override multiple values with blank string
if (!val && Array.isArray(_tags[field.key])) return;
Expand Down
3 changes: 2 additions & 1 deletion modules/ui/fields/localized.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@ export function uiFieldLocalized(field, context) {
return;
}

var val = context.cleanTagValue(utilGetSetValue(d3_select(this)));
var val = utilGetSetValue(d3_select(this));
if (!onInput) val = context.cleanTagValue(val);

// don't override multiple values with blank string
if (!val && Array.isArray(_tags[field.key])) return;
Expand Down
3 changes: 2 additions & 1 deletion modules/ui/fields/textarea.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ export function uiFieldTextarea(field, context) {
function change(onInput) {
return function() {

var val = context.cleanTagValue(utilGetSetValue(input));
var val = utilGetSetValue(input);
if (!onInput) val = context.cleanTagValue(val);

// don't override multiple values with blank string
if (!val && Array.isArray(_tags[field.key])) return;
Expand Down

0 comments on commit 4467c4a

Please sign in to comment.