mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 00:48:25 +00:00
exposed the label property (#4988)
This commit is contained in:
parent
3d6b8fedd9
commit
7bf260b7fb
2 changed files with 6 additions and 0 deletions
|
|
@ -87,6 +87,11 @@ export const DropDown = function DropDown({
|
|||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [JSON.stringify(values)]);
|
||||
|
||||
useEffect(() => {
|
||||
setExposedVariable('label', label);
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [label]);
|
||||
|
||||
const onSearchTextChange = (searchText, actionProps) => {
|
||||
if (actionProps.action === 'input-change') {
|
||||
setExposedVariable('searchText', searchText);
|
||||
|
|
|
|||
|
|
@ -2321,6 +2321,7 @@ export const widgets = [
|
|||
exposedVariables: {
|
||||
value: 2,
|
||||
searchText: '',
|
||||
label: 'Select',
|
||||
},
|
||||
actions: [
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue