Skip to content

Commit d9799fe

Browse files
authored
fix: search take no effect in icon-picker with antd (#5592)
1 parent 4570d5b commit d9799fe

File tree

2 files changed

+14
-2
lines changed
  • apps/web-antd/src/adapter/component
  • playground/src/adapter/component

2 files changed

+14
-2
lines changed

apps/web-antd/src/adapter/component/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,13 @@ async function initComponentAdapter() {
125125
IconPicker: (props, { attrs, slots }) => {
126126
return h(
127127
IconPicker,
128-
{ iconSlot: 'addonAfter', inputComponent: Input, ...props, ...attrs },
128+
{
129+
iconSlot: 'addonAfter',
130+
inputComponent: Input,
131+
modelValueProp: 'value',
132+
...props,
133+
...attrs,
134+
},
129135
slots,
130136
);
131137
},

playground/src/adapter/component/index.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,13 @@ async function initComponentAdapter() {
126126
IconPicker: (props, { attrs, slots }) => {
127127
return h(
128128
IconPicker,
129-
{ iconSlot: 'addonAfter', inputComponent: Input, ...props, ...attrs },
129+
{
130+
iconSlot: 'addonAfter',
131+
inputComponent: Input,
132+
modelValueProp: 'value',
133+
...props,
134+
...attrs,
135+
},
130136
slots,
131137
);
132138
},

0 commit comments

Comments
 (0)