fix(amis): 搜索组件功能失效问题修复

This commit is contained in:
wibetter 2023-11-28 14:35:09 +08:00
parent 2642f4df63
commit 7b3994b86f

View File

@ -188,6 +188,7 @@ export class SearchBoxRenderer extends React.Component<
const {
data,
name,
disabled,
onQuery: onQuery,
mini,
enhance,
@ -208,7 +209,8 @@ export class SearchBoxRenderer extends React.Component<
className={className}
style={style}
name={name}
disabled={!onQuery}
// disabled={!onQuery}
disabled={disabled}
defaultActive={!!value}
defaultValue={onChange ? undefined : value}
value={value}