-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve issue with disabled property in options not working (#6595)
#### What type of PR is this? /kind bug /area ui #### What this PR does / why we need it: 解决 formkit select 组件中,option 使用 `attrs: { disabled: true }` 无效的问题。 #### How to test it? 测试在 formkit select 组件中,option 设置 disabled 属性是否有效。 #### Which issue(s) this PR fixes: Fixed #6592 #### Does this PR introduce a user-facing change? ```release-note 解决 formkit select 组件的 Option 设置 disabled 无效的问题 ```
- Loading branch information
Showing
3 changed files
with
14 additions
and
9 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const isFalse = (value: string | boolean | undefined | null) => { | ||
return [undefined, null, "false", false].includes(value); | ||
}; |