Ensure that cursor should be focused on the first options of the Utility dialogs. Fixes #7110

This commit is contained in:
Nikhil Mohite
2022-02-02 14:48:35 +05:30
committed by Akshay Joshi
parent 4d727015fd
commit b4b658c59d
4 changed files with 23 additions and 21 deletions

View File

@@ -67,12 +67,12 @@ function MappedFormControlBase({type, value, id, onChange, className, visible, i
{...props} />;
case 'toggle':
return <FormInputToggle name={name} value={value}
onChange={onTextChange} className={className}
onChange={onTextChange} className={className} inputRef={inputRef}
{...props} />;
case 'color':
return <FormInputColor name={name} value={value} onChange={onTextChange} className={className} {...props} />;
case 'file':
return <FormInputFileSelect name={name} value={value} onChange={onTextChange} className={className} {...props} />;
return <FormInputFileSelect name={name} value={value} onChange={onTextChange} className={className} inputRef={inputRef} {...props} />;
case 'sql':
return <FormInputSQL name={name} value={value} onChange={onSqlChange} className={className} noLabel={noLabel} {...props} />;
case 'note':