Topic: [BUG] Select validation not possible with empty feedback string

gianlucagiacometti priority asked 1 year ago

Expected behavior

If I wand no validation feedback it should be possible to set:


same for invalid

Actual behavior

Aclually, a js error shows

Console log:

Uncaught Error: SELECT: Option "validFeedback" provided type "null" but expected type "string".

Resources (screenshots, code snippets etc.)

You can use the select snippet in your docs to check it

Mateusz Lazaru staff answered 1 year ago

Thank you for reporting this. I've added task to fix this.

Mateusz Lazaru staff commented 1 year ago

update: we will not change this behavior, because current one is correct in our opinion. If you don't want to send any feedback to users, use:

data-mdb-valid-feedback=" "

gianlucagiacometti priority commented 1 year ago

Thank you. What is important in this case is that no additional space is added below the field if the string is " ".

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 5.0.0
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: No