Skip to content

Commit

Permalink
Trigger "onchange" event after updating input value
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Demmer committed Jul 31, 2018
1 parent e1453f8 commit b37a8c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions media/system/webcomponents/js/joomla-field-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@
setValue(value, name) {
this.input.setAttribute('value', value);
this.inputName.setAttribute('value', name || value);

this.input.dispatchEvent(new Event('change'));
}
}

Expand Down

0 comments on commit b37a8c0

Please sign in to comment.