Skip to content

Commit e77d063

Browse files
fixed auto complete resize issue
1 parent b58ad7d commit e77d063

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

client/packages/lowcoder/src/comps/comps/autoCompleteComp/autoCompleteComp.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,19 +162,20 @@ let AutoCompleteCompBase = (function () {
162162
},
163163
}}
164164
>
165-
<AutoComplete
165+
<AutoComplete
166166
disabled={props.disabled}
167167
value={searchtext}
168-
options={items}
168+
options={items}
169+
style={{ width: "100%" }}
169170
onChange={(value: string, option) => {
170171
props.valueInItems.onChange(false);
171172
setvalidateState(textInputValidate(getTextInputValidate()));
172173
setsearchtext(value);
173174
props.value.onChange(value);
174175
props.onEvent("change")
175-
}}
176+
}}
176177
onFocus={() => {
177-
setActivationFlag(true)
178+
setActivationFlag(true)
178179
props.onEvent("focus")
179180
}}
180181
onBlur={() => props.onEvent("blur")}
@@ -275,8 +276,8 @@ let AutoCompleteCompBase = (function () {
275276
</ConfigProvider>
276277
</>
277278
),
278-
style: props.style,
279-
...validateState,
279+
// style: props.style,
280+
// ...validateState,
280281
});
281282
})
282283
.setPropertyViewFn((children) => {

0 commit comments

Comments
 (0)