Merge pull request #1889 from lowdefy/multiple-select-clear-search

Add autoClearSearchValue property to MultipleSelector block.
This commit is contained in:
Gerrie van Wyk 2024-11-11 10:37:25 +00:00 committed by GitHub
commit 29cb9befd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
'@lowdefy/blocks-antd': minor
---
Add autoClearSearchValue property to MultipleSelector block.

View File

@ -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])}

View File

@ -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,