[Koha-bugs] [Bug 30975] Framework plugins do not work on cloned fields/subfields

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 3 09:46:11 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30975

Lari Strand <lmstrand at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lmstrand at gmail.com

--- Comment #28 from Lari Strand <lmstrand at gmail.com> ---
We use our custom value builder plugins for adding various keywords from an
online vocabulary using dynamically created select2 elements. These patches
fixed the issue with plugins not initialising on cloned fields. I needed to
change the code so the plugin gets initialised with a click-function, formerly
mouseover in the input field.

"Events removed: change, mouseover, mouseout, mousedown, mouseup,
   mousemove, keydown, keypress, keyup.
If you ever need one of those, you can still add event listeners in
   the 'focus' event handler, and remove them in the 'blur' event
   handler"

How would I bring mouseover back as a valid function in code? What kind of
performance issues do you mean by "'mouseover' and 'mousemove' are not used and
would trigger too much events."?

I also received a report that the patch breaks field/subfield cloning on
Firefox 78.12.0esr. Apparently the field does not get cloned and the page goes
to the top. They've tried to clear the browser cache. Does this make any sense?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list