Select with selected disabled option is validated as 'v


Topic: Select with selected disabled option is validated as 'valid'

pavelpossiblep asked 8 months ago

Expected behavior

When a disabled option is selected in a validated select it shows that the select is valid. I use this for 'please select an option' default selected option which doesn't prevent form from submitting for some reason.

Actual behavior

Such select should be deemed invalid. It's being validated but gives wrong result.

Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/standard/pavelpossiblep/3098235


Dawid Wajszczuk staff commented 8 months ago

Hi. Could you please create a snippet with this bug? It will help a lot. Thanks.


pavelpossiblep commented 8 months ago

Sure! Added a snippet to the main thread: https://mdbootstrap.com/snippets/standard/pavelpossiblep/3098235


Dawid Wajszczuk staff answered 8 months ago

Hi,

Thanks for reporting this and for the snippet. We will try to fix it as soon as possible.

Keep coding,
Dawid


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.5.1
  • Device: any
  • Browser: any
  • OS: any
  • Provided sample code: No
  • Provided link: Yes