-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(form-core): allow to use '_$isValidator$' instead of instanceof c…
…heck (supporting multiple versions of Validator) * fix(form-core): make use of `validatorName` and `type` to check validator instance * fix(form-core): check for nullability for disabled prop * fix: add `_$isValidator$` property to improve the check * fix: disable dot notation to avoid the renaming for the prop during build/minification * fix: disable dot notation to avoid the renaming for the prop during build/minification * test: add check for _$isValidator$ * chore: catch edge cases in cem script * chore: cleanup, docs, and add prop on ctor to be more unobtrusive * chore: changeset --------- Co-authored-by: Thijs Louisse <[email protected]>
- Loading branch information
1 parent
0bee6e3
commit 9b92fa2
Showing
6 changed files
with
46 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@lion/ui': patch | ||
--- | ||
|
||
Add unique ['_$isValidator$'] marker to identify Validator instances across different lion versions. | ||
It's meant to be used as a replacement for an `instanceof` check. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters