Bug #38177
closedremove select2('destroy') for non select2 item
Description
Fix:
select2.js:6001 The select2('destroy') method was called on an element that is not using Select2.
overrideMethod hook.js:608
select2.js:6001
(anonymous)
each jquery.js:383
jquery.js:205
each
$.fn.select2 select2.js:5997
application-4c96aa3a5d1c543de0d7494fa2bc018592e73deea8bcb971e84230d3a13141e6.js:4653
(anonymous)
dispatch jquery.js:5145
jquery.js:4949
elemData.handle
trigger jquery.js:8629
jquery.js:8707
(anonymous)
each jquery.js:383
jquery.js:205
each
trigger jquery.js:8706
application-4c96aa3a5d1c543de0d7494fa2bc018592e73deea8bcb971e84230d3a13141e6.js:5027
(anonymous)
dispatch jquery.js:5145
jquery.js:4949
elemData.handle
loadScript late_load-82f1872e1d8591b8ae02c813fbb4de52794cce4668361c2d458de4351275a689.js:33
late_load-82f1872e1d8591b8ae02c813fbb4de52794cce4668361c2d458de4351275a689.js:53
(anonymous)
Promise.then
load_dynamic_javascripts late_load-82f1872e1d8591b8ae02c813fbb4de52794cce4668361c2d458de4351275a689.js:21
new:53
(anonymous)
select2.js:6007 Uncaught TypeError: Cannot read properties of undefined (reading 'destroy')