@@ -45,14 +45,14 @@ export abstract class App {
4545 protected initialize ( ) {
4646 this . log ( `${ this . _appName } .initializeState` ) ;
4747
48- for ( const el of document . querySelectorAll < HTMLInputElement > ( 'input[type=" checkbox" ].setting' ) ) {
48+ for ( const el of document . querySelectorAll < HTMLInputElement > ( 'input[type=checkbox].setting' ) ) {
4949 const checked = el . dataset . type === 'array'
5050 ? ( getSettingValue < string [ ] > ( el . name ) || [ ] ) . includes ( el . value )
5151 : getSettingValue < boolean > ( el . name ) || false ;
5252 el . checked = checked ;
5353 }
5454
55- for ( const el of document . querySelectorAll < HTMLInputElement > ( 'input[type=" text"] .setting' ) ) {
55+ for ( const el of document . querySelectorAll < HTMLInputElement > ( 'input[type=text].setting, input:not([type]) .setting' ) ) {
5656 el . value = getSettingValue < string > ( el . name ) || '' ;
5757 }
5858
@@ -71,13 +71,13 @@ export abstract class App {
7171
7272 protected bind ( ) {
7373 const onInputChecked = this . onInputChecked . bind ( this ) ;
74- DOM . listenAll ( 'input[type=" checkbox" ].setting' , 'change' , function ( this : HTMLInputElement ) { return onInputChecked ( this , ...arguments ) ; } ) ;
74+ DOM . listenAll ( 'input[type=checkbox].setting' , 'change' , function ( this : HTMLInputElement ) { return onInputChecked ( this , ...arguments ) ; } ) ;
7575
7676 const onInputBlurred = this . onInputBlurred . bind ( this ) ;
77- DOM . listenAll ( 'input[type=" text"] .setting' , 'blur' , function ( this : HTMLInputElement ) { return onInputBlurred ( this , ...arguments ) ; } ) ;
77+ DOM . listenAll ( 'input[type=text].setting, input:not([type]) .setting' , 'blur' , function ( this : HTMLInputElement ) { return onInputBlurred ( this , ...arguments ) ; } ) ;
7878
7979 const onInputFocused = this . onInputFocused . bind ( this ) ;
80- DOM . listenAll ( 'input[type=" text"] .setting' , 'focus' , function ( this : HTMLInputElement ) { return onInputFocused ( this , ...arguments ) ; } ) ;
80+ DOM . listenAll ( 'input[type=text].setting, input:not([type]) .setting' , 'focus' , function ( this : HTMLInputElement ) { return onInputFocused ( this , ...arguments ) ; } ) ;
8181
8282 const onInputSelected = this . onInputSelected . bind ( this ) ;
8383 DOM . listenAll ( 'select.setting' , 'change' , function ( this : HTMLInputElement ) { return onInputSelected ( this , ...arguments ) ; } ) ;
@@ -181,7 +181,7 @@ export abstract class App {
181181 const setting = element . closest ( '.settings-group__setting' ) ;
182182 if ( setting == null ) return ;
183183
184- const input = setting . querySelector < HTMLInputElement > ( 'input[type=" text"] ' ) ;
184+ const input = setting . querySelector < HTMLInputElement > ( 'input[type=text], input:not([type]) ' ) ;
185185 if ( input == null ) return ;
186186
187187 input . value += `\${${ element . dataset . token } }` ;
0 commit comments