fix #7486 enable save button on adding options in select/multiselect (#7495)

issue : #7486 

demo 


https://github.com/user-attachments/assets/0b1ed9de-2aa1-4910-bfc7-01732b89367f
This commit is contained in:
NitinPSingh 2024-10-09 23:09:52 +05:30 committed by GitHub
parent 8418729d9f
commit 855060a308
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -181,13 +181,13 @@ export const SettingsDataModelFieldSelectForm = ({
const handleAddOption = () => {
const newOptions = getOptionsWithNewOption();
setFormValue('options', newOptions);
setFormValue('options', newOptions, { shouldDirty: true });
};
const handleInputEnter = () => {
const newOptions = getOptionsWithNewOption();
setFormValue('options', newOptions);
setFormValue('options', newOptions, { shouldDirty: true });
};
return (