- added clear icon for dynamic data dropdown;

This commit is contained in:
Vitalii Kiiko
2025-04-11 10:36:59 +02:00
parent 8cd86ee267
commit cbc4b67579
2 changed files with 3 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ const dynamicDataForTextinput = [
{ label: 'cognome utente', value: 'user.lastName' }, { label: 'cognome utente', value: 'user.lastName' },
{ label: 'numero di telefono utente', value: 'user.phoneNumber' }, { label: 'numero di telefono utente', value: 'user.phoneNumber' },
{ label: 'codice fiscale utente', value: 'user.codiceFiscale' }, { label: 'codice fiscale utente', value: 'user.codiceFiscale' },
{ label: 'nome del rappresentante', value: 'custom.legalRepresentant' }, { label: 'nome e cognome del rappresentante', value: 'custom.legalRepresentant' },
{ label: 'nome e cognome utente', value: 'custom.userFullName' }, { label: 'nome e cognome utente', value: 'custom.userFullName' },
] ]

View File

@@ -169,6 +169,7 @@ const BuilderElementSettings = ({ closeSettingsFn, callStatus, context }) => {
options={getDynamicDataOptions(activeElementData.name)} options={getDynamicDataOptions(activeElementData.name)}
optionLabel="label" optionLabel="label"
optionValue="value" optionValue="value"
showClear
placeholder={__('Scegli', 'gepafin')}/> placeholder={__('Scegli', 'gepafin')}/>
</div> : null} </div> : null}
</TabPanel> </TabPanel>
@@ -203,6 +204,7 @@ const BuilderElementSettings = ({ closeSettingsFn, callStatus, context }) => {
options={customValidationOptions} options={customValidationOptions}
optionLabel="label" optionLabel="label"
optionValue="value" optionValue="value"
showClear
placeholder={__('Scegli', 'gepafin')}/> placeholder={__('Scegli', 'gepafin')}/>
</div> </div>
: null} : null}