Pixabay / jQuery-tagEditor

A powerful and lightweight tag editor plugin for jQuery.
500 stars 165 forks source link

jquery-3.5.1.min.js:2 Uncaught TypeError: Cannot read property 'value' of undefined #167

Open enayath12 opened 3 years ago

enayath12 commented 3 years ago

Because of the security issue in our project we are currently using jQuery 3.5.1 version. https://code.jquery.com/jquery-3.5.1.min.js

After this change we are facing the below issue when click on tab.

Uncaught TypeError: Cannot read property 'value' of undefined at HTMLInputElement.handler (jquery-3.5.1.min.js:2) at HTMLUListElement. (jquery.tag-editor.js:114)

example: In tagEditor once we type word TEST and click on tab button, cursor is moving out input field and in console I can see the error.

enayath12 commented 3 years ago

jQuery-tagEditor-master 2.zip

attached tagEditor plugin which has issue

We can test instantly by changing to any jQuery version. At line number 371.

issue is with: https://code.jquery.com/jquery-3.5.1.min.js jQuery-tagEditor-master 2.zip

yads commented 3 years ago

As far as I can tell this is fixed in the latest 3.x jquery branch https://github.com/jquery/jquery/blob/3.x-stable/src/event.js#L590