Skip to content

Fix modal.js bug where jQuery .trigger() was called on a DOM element instead of using native .click()#331

Open
yellowmastodon wants to merge 1 commit into
processwire:devfrom
yellowmastodon:dev
Open

Fix modal.js bug where jQuery .trigger() was called on a DOM element instead of using native .click()#331
yellowmastodon wants to merge 1 commit into
processwire:devfrom
yellowmastodon:dev

Conversation

@yellowmastodon

Copy link
Copy Markdown

Fix console error $a[0].trigger is not a function triggered in PageFrontEdit.js when clicking links inside modal editable regions.
Root cause was in modal.js incorrectly calling jQuery .trigger() on DOM element. Replaced with native .click().
Also regenerate modal.min.js using terser with to match existing original modal.min.js as closely as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant