Selectr icon indicating copy to clipboard operation
Selectr copied to clipboard

Update dist min JS to match src JS

Open PawelGlow opened this issue 5 years ago • 1 comments

https://github.com/Mobius1/Selectr/blob/master/dist/selectr.min.js does not match https://github.com/Mobius1/Selectr/blob/master/src/selectr.js.

This creates a issue when you include the lib using NPM, it loads the obsolete file from the dist folder which is specified in the package.json "main": "dist/selectr.min.js".

To see the difference search for this phrase this.select(0); and notice the dist min JS file is missing this IF condition: this.config.data.length > 0.

PawelGlow avatar Aug 08 '19 12:08 PawelGlow

This is a huge issue for us as the XSS fixes from 8 months ago are not included in the dist/selectr.min.js (works fine using the src selectr.js. How is the min file created and can we get the npm package updated properly??

brimimc avatar Nov 04 '19 08:11 brimimc