fix: improve is_disable logic for better clarity in Field component
This commit is contained in:
parent
b9f08cf46c
commit
58936d894f
|
|
@ -134,7 +134,8 @@ export const Field: React.FC<FieldProps> = ({
|
|||
pagination,
|
||||
search,
|
||||
};
|
||||
const is_disable = fm.mode === "view" ? true : disabled;
|
||||
const is_disable =
|
||||
disabled === false ? false : fm.mode === "view" ? true : disabled;
|
||||
const error = fm.error?.[name];
|
||||
useEffect(() => {
|
||||
setTimeout(() => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue