Skip to content

Commit

Permalink
#22 event bubbling
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonin committed Apr 2, 2024
1 parent f19105a commit 90f7dd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion assets/dist/media_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ var _default = /*#__PURE__*/function (_Controller) {
if (this.hasCropModalTarget) {
this.cropModalTarget.dataset['arkounay-UxMedia-CropPathValue'] = this.pathValue;
}
var event = new Event('change');
var event = new Event('change', {
bubbles: true
});
this.inputPathTarget.dispatchEvent(event);
};
_proto.openFileManager = function openFileManager() {
Expand Down
2 changes: 1 addition & 1 deletion assets/src/media_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export default class extends Controller {
this.cropModalTarget.dataset['arkounay-UxMedia-CropPathValue'] = this.pathValue;
}

const event = new Event('change');
const event = new Event('change', { bubbles: true });
this.inputPathTarget.dispatchEvent(event);
}

Expand Down

0 comments on commit 90f7dd0

Please sign in to comment.