@@ -72,7 +72,7 @@ export class ModalForm<Callback extends (ctx: FormCallback, ...args: any[]) => v
7272 }
7373
7474 this . args . push ( { type : 'dropdown' , options : options } )
75- this . form . dropdown ( label , options , defaultValueIndex )
75+ this . form . dropdown ( label , options , { defaultValueIndex } )
7676
7777 // @ts -expect-error AAAAAAAAAAAA
7878 return this
@@ -133,7 +133,7 @@ export class ModalForm<Callback extends (ctx: FormCallback, ...args: any[]) => v
133133 }
134134
135135 this . args . push ( { type : 'dropdown' , options : objectKeys } )
136- this . form . dropdown ( label , visibleKeys , defaultValueIndex )
136+ this . form . dropdown ( label , visibleKeys , { defaultValueIndex } )
137137
138138 // @ts -expect-error AAAAAAAAAAAA
139139 return this
@@ -156,7 +156,7 @@ export class ModalForm<Callback extends (ctx: FormCallback, ...args: any[]) => v
156156 defaultValue = 0 ,
157157 ) : ModalForm < AppendFormField < Callback , number > > {
158158 this . args . push ( { type : 'slider' } )
159- this . form . slider ( label , minimumValue , maximumValue , valueStep , defaultValue )
159+ this . form . slider ( label , minimumValue , maximumValue , { defaultValue, valueStep } )
160160
161161 // @ts -expect-error AAAAAAAAAAAA
162162 return this
@@ -170,7 +170,7 @@ export class ModalForm<Callback extends (ctx: FormCallback, ...args: any[]) => v
170170 */
171171 addToggle ( label : string , defaultValue : boolean ) : ModalForm < AppendFormField < Callback , boolean > > {
172172 this . args . push ( { type : 'toggle' } )
173- this . form . toggle ( label , defaultValue )
173+ this . form . toggle ( label , { defaultValue } )
174174
175175 // @ts -expect-error AAAAAAAAAAAA
176176 return this
@@ -189,7 +189,7 @@ export class ModalForm<Callback extends (ctx: FormCallback, ...args: any[]) => v
189189 defaultValue ?: string ,
190190 ) : ModalForm < AppendFormField < Callback , string > > {
191191 this . args . push ( { type : 'textField' } )
192- this . form . textField ( label , placeholderText , defaultValue )
192+ this . form . textField ( label , placeholderText , { defaultValue } )
193193
194194 // @ts -expect-error AAAAAAAAAAAA
195195 return this
0 commit comments