Fields, like the ArticleField used in the Article menu item, open a modal to select the article.
However, on selecting/clearing the selection, the change event is not triggered on the hidden form field that contains the value.
This means you can't have custom javascript that triggers to the change event on those fields.
The solution is to add something like this to window.processModalParent
in media/system/js/fields/modal-fields.js
before the return.
fieldId.dispatchEvent(new Event('change'));
fieldTitle.dispatchEvent(new Event('change'));
Labels |
Added:
No Code Attached Yet
|
Nope. I am just reporting the issue. Not willing to make a PR. Do with it what you want.
Labels |
Added:
bug
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-11-02 08:15:11 |
Closed_By | ⇒ | regularlabs |
@regularlabs Could you make a PR? Happy to test if needed ;)
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35372.