dnbexperience/eufemia

bug(Field.String): onBlurValidator error message is displayed instead of the required error message after removing value

Closed this issue ยท 2 comments

๐Ÿ› Bug Report

onBlurValidator error message is displayed instead of the required error message after removing value.
I would expect to see the required error message(which I do initially), and not "My Error B".

To Reproduce

https://codesandbox.io/p/sandbox/busy-sunset-lrshrf?workspaceId=9eb653cb-4406-4b8f-bc96-714927cc7fcd

  • Initially the error message is required(Dette feltet mรฅ fylles ut.) which is expected.
  • Enter 123 and tab out, the error message is from bValidator(My Error B) which is expected.
  • Remove 123 and tab out, the error message is from bValidator(My Error B) which is not expected, I would expect the error message to be required(Dette feltet mรฅ fylles ut.).

Video of the steps above:

Screen.Recording.2024-10-07.at.12.43.12.mov

I re-tested this using the latest version of Eufemia today(v10.53.0), and I still experience the same.
Here's a CSB using the latest version of Eufemia (*): https://codesandbox.io/p/sandbox/polished-sea-83lp7w?workspaceId=9eb653cb-4406-4b8f-bc96-714927cc7fcd

๐ŸŽ‰ This issue has been resolved in version 10.54.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€