brianvoe / slim-select

Slim advanced select dropdown
http://slimselectjs.com
MIT License
1.03k stars 195 forks source link

Making the select required attribute visible #551

Closed balessan closed 2 months ago

balessan commented 2 months ago

Describe the bug

Following the discussion on the closed related issue: https://github.com/brianvoe/slim-select/issues/273 It looks like the proposed solutions do not work anymore.

Adding the CSS is overwritten by the slimselect initialization. The slimSelect.render.showUI() method does not exist anymore

The required attribute presence does not trigger any error/validation message

Recreate it in Codepen

Tried to reproduce here: https://codepen.io/brianvoe/pen/MWXqXXV But in this basic example, the select is alway set to Option 1, that is not the case in my project though.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
brianvoe commented 2 months ago

Require hasnt been implement into slim select. If you would like to submit a pr Ill take a look at it.

the css part you didnt give me anything to look at so i have no idea what you issue is.