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

gianlucagiacometti priority asked 11 months ago


Expected behavior

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

data-mdb-valid-feedback=""

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 11 months ago


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


Mateusz Lazaru staff commented 11 months 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 11 months 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.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • User: 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