Reassign input variable to the update selection after merge

This commit is contained in:
Bryan Housel
2016-09-27 23:28:09 -04:00
parent 132e699c89
commit aeb2e26fa0

View File

@@ -13,17 +13,15 @@ export function textarea(field) {
input = selection.selectAll('textarea')
.data([0]);
input.enter()
input = input.enter()
.append('textarea')
.attr('id', 'preset-input-' + field.id)
.attr('placeholder', field.placeholder() || t('inspector.unknown'))
.attr('maxlength', 255)
.merge(input);
input
.on('input', change(true))
.on('blur', change())
.on('change', change());
.on('change', change())
.merge(input);
}