You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(form): optional support all field errors in inline prompt
According to the (unclear) docs there are two possibilities to show errors in an inline prompt label. You can supply either a string or an array of strings.
However, this was always ignored. It always uses only the very first field error, regardless how many other errors may exists.
The error message instead (when not using inline errors) is always showing all possible rule errors by default.
This PR now also shows all errors of a field in an inline prompt label just like the error message already does.
That said, the existing prompt template now, more logical, is used to created the label content (just like the error template does for non inline errors), rather than the label node itself (this is now done automatically).
Even if this is a breaking change, i doubt the prompt label was ever customised by somebody , because of the overriding logic (which made the prompt template useless.)
The previous behavior totally ignored the prompt templates inner content, because right after that, the html content inside the label was immediatly overridden all the time. (see comments below)
0 commit comments