We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 791f305 commit e46c21fCopy full SHA for e46c21f
packages/components/scripts/post-build/components.ts
@@ -222,11 +222,19 @@ export const getComponents = (): Component[] => [
222
}
223
224
},
225
-
226
{
227
name: 'select',
228
overwrites: {
229
- angular: [{ from: '<HTMLElement>', to: '<HTMLSelectElement>' }],
+ angular: [
+ { from: '<HTMLElement>', to: '<HTMLSelectElement>' },
230
+ // TODO: We can move this to onMount with useTarget after https://github.com/BuilderIO/mitosis/pull/1750 is merged
231
+ {
232
+ from: 'ngAfterViewInit() {',
233
+ to:
234
+ 'ngAfterViewInit() {\n' +
235
+ '\t this.writeValue(this.value());'
236
+ }
237
+ ],
238
react: [
239
// React not allowing selected for options
240
{ from: 'selected={option.selected}', to: '' },
0 commit comments