@@ -121,10 +121,6 @@ class AuthorFormControlElement extends AuthorBaseElement(HTMLElement) {
121121 if ( this . PRIVATE . toggleInputTypes . indexOf ( input . type ) >= 0 ) {
122122 this . type = 'toggle'
123123 }
124-
125- this . UTIL . registerListeners ( this . PRIVATE . input , {
126- input : this . PRIVATE . inputHandler
127- } )
128124 } ,
129125
130126 initLabel : label => {
@@ -154,10 +150,6 @@ class AuthorFormControlElement extends AuthorBaseElement(HTMLElement) {
154150 option . removeAttribute ( 'label' )
155151 }
156152 } )
157-
158- this . UTIL . registerListeners ( this . PRIVATE . input , {
159- change : this . PRIVATE . inputHandler
160- } )
161153 } ,
162154
163155 initMultipleSelectMenu : select => {
@@ -190,10 +182,6 @@ class AuthorFormControlElement extends AuthorBaseElement(HTMLElement) {
190182
191183 this . appendChild ( surrogate )
192184 this . PRIVATE . input = surrogate
193-
194- this . UTIL . registerListeners ( this . PRIVATE . input , {
195- change : this . PRIVATE . inputHandler
196- } )
197185 } ,
198186
199187 initSelectMenu : select => {
@@ -205,17 +193,6 @@ class AuthorFormControlElement extends AuthorBaseElement(HTMLElement) {
205193 }
206194
207195 this . PRIVATE . initSelectSurrogate ( select , document . createElement ( 'author-select' ) )
208- } ,
209-
210- inputHandler : evt => this . PRIVATE . validate ( evt . target ) ,
211-
212- validate : input => {
213- if ( input . checkValidity ( ) ) {
214- this . removeAttribute ( 'invalid' )
215- } else {
216- this . setAttribute ( 'invalid' , '' )
217- this . emit ( 'invalid' )
218- }
219196 }
220197 } )
221198
@@ -263,13 +240,12 @@ class AuthorFormControlElement extends AuthorBaseElement(HTMLElement) {
263240 } )
264241
265242 this . UTIL . registerListeners ( this , {
266- connected : ( ) => this . PRIVATE . guid = this . UTIL . generateGuid ( 'control_' ) ,
267- rendered : ( ) => this . PRIVATE . validate ( this . PRIVATE . input )
243+ connected : ( ) => this . PRIVATE . guid = this . UTIL . generateGuid ( 'control_' )
268244 } )
269245 }
270246
271247 static get observedAttributes ( ) {
272- return [ 'disabled' , 'invalid' ]
248+ return [ 'disabled' ]
273249 }
274250
275251 get input ( ) {
0 commit comments