-
-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Labels
Description
On Plone 6.1, I'm trying to use the select2 pattern with callback action for onSelected (but this also applies to onSelecting, onDeselecting, onDeselected).
If I pass the callback as a string referencing an existing JS function via pattern options (options["onSelected"] = "myFunction"), the JS throws an error at this line after a selection has been made in the select2 field :
mockup/src/pat/select2/select2.js
Line 133 in 253d77a
| if (this.options.debug) { |
Uncaught TypeError: this is undefined
The function is never called.