mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-17 14:30:34 +08:00
Merge pull request #1889 from lowdefy/multiple-select-clear-search
Add autoClearSearchValue property to MultipleSelector block.
This commit is contained in:
commit
29cb9befd6
5
.changeset/famous-stingrays-suffer.md
Normal file
5
.changeset/famous-stingrays-suffer.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
'@lowdefy/blocks-antd': minor
|
||||
---
|
||||
|
||||
Add autoClearSearchValue property to MultipleSelector block.
|
@ -71,6 +71,7 @@ const MultipleSelector = ({
|
||||
<Select
|
||||
id={`${blockId}_input`}
|
||||
allowClear={properties.allowClear !== false}
|
||||
autoClearSearchValue={properties.autoClearSearchValue}
|
||||
autoFocus={properties.autoFocus}
|
||||
bordered={properties.bordered}
|
||||
className={methods.makeCssClass([{ width: '100%' }, properties.inputStyle])}
|
||||
|
@ -9,6 +9,11 @@
|
||||
"default": true,
|
||||
"description": "Allow the user to clear the selected value, sets the value to null."
|
||||
},
|
||||
"autoClearSearchValue": {
|
||||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Whether the current search will be cleared on selecting an item."
|
||||
},
|
||||
"autoFocus": {
|
||||
"type": "boolean",
|
||||
"default": false,
|
||||
|
Loading…
Reference in New Issue
Block a user