Closed dfuse-dev closed 5 years ago
same problem, attentive to any comments
i have the same problem with 'select all' link.
i have the same problem. My data: yii2 version 2.0.24 select2-krajee.js - @version 2.1.4 jquery.js - jQuery JavaScript Library v3.4.1 PHP @version 7.3.8
Console log:
select2-krajee.js:71 Uncaught TypeError: Cannot read property 'element' of undefined
at HTMLLIElement.
Roll back to latest stable version 2.1.3 from dev-master and 'select all' will be working again.
Thanks for the report guys - this seems to have happened after the update to the source third party select 2 plugin. Will check on this.
Resolved with the above latest commit.
Hi, i have the same problem, and a use the last version, in my case is when i try select many elements. when I select few elements it works fine.
5select2-krajee.js:47 Uncaught TypeError: Cannot read properties of null (reading 'length')
at HTMLLIElement.
I already found the solution, followed the error and changed the line: if (opts.length && opts[1]) to if (opts && opts.length && opts[1])
Steps to reproduce the issue
Expected behavior and actual behavior
It should select all values in dropdown and instead of that it throws this error:
Environment
Browsers
Operating System
Libraries
Isolating the problem