@@ -211,17 +211,17 @@ export default class PreferencesUserSettingsTab extends React.Component<IProps,
211211
212212 private onAutocompleteDelayChange = ( e : React . ChangeEvent < HTMLInputElement > ) : void => {
213213 this . setState ( { autocompleteDelay : e . target . value } ) ;
214- SettingsStore . setValue ( "autocompleteDelay" , null , SettingLevel . DEVICE , e . target . value ) ;
214+ SettingsStore . setValue ( "autocompleteDelay" , null , SettingLevel . DEVICE , e . target . valueAsNumber ) ;
215215 } ;
216216
217217 private onReadMarkerInViewThresholdMs = ( e : React . ChangeEvent < HTMLInputElement > ) : void => {
218218 this . setState ( { readMarkerInViewThresholdMs : e . target . value } ) ;
219- SettingsStore . setValue ( "readMarkerInViewThresholdMs" , null , SettingLevel . DEVICE , e . target . value ) ;
219+ SettingsStore . setValue ( "readMarkerInViewThresholdMs" , null , SettingLevel . DEVICE , e . target . valueAsNumber ) ;
220220 } ;
221221
222222 private onReadMarkerOutOfViewThresholdMs = ( e : React . ChangeEvent < HTMLInputElement > ) : void => {
223223 this . setState ( { readMarkerOutOfViewThresholdMs : e . target . value } ) ;
224- SettingsStore . setValue ( "readMarkerOutOfViewThresholdMs" , null , SettingLevel . DEVICE , e . target . value ) ;
224+ SettingsStore . setValue ( "readMarkerOutOfViewThresholdMs" , null , SettingLevel . DEVICE , e . target . valueAsNumber ) ;
225225 } ;
226226
227227 private renderGroup ( settingIds : BooleanSettingKey [ ] , level = SettingLevel . ACCOUNT ) : JSX . Element {
0 commit comments