Prevented interferance with the user's action if they interacted with
something below the tags, since a new row would be added on blur and
hence shift down positions.
For #3931
}
setupListeners() {
- this.container.addEventListener('change', event => {
+ this.container.addEventListener('input', event => {
+
/** @var {AddRemoveRows} **/
const addRemoveComponent = window.$components.firstOnElement(this.addRemoveComponentEl, 'add-remove-rows');
- if (!this.hasEmptyRows()) {
+ if (!this.hasEmptyRows() && event.target.value) {
addRemoveComponent.add();
}
});