File tree Expand file tree Collapse file tree 2 files changed +1
-26
lines changed
Expand file tree Collapse file tree 2 files changed +1
-26
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @author.io/element-menu" ,
3- "version" : " 1.0.4-beta.1 " ,
3+ "version" : " 1.0.4" ,
44 "description" : " author-menu custom element (web component)." ,
55 "main" : " dist/author-menu.min.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -163,14 +163,6 @@ class AuthorMenuElement extends AuthorBaseElement(HTMLElement) {
163163 this . removeAttribute ( 'open' )
164164 }
165165
166- // if (this.selectedOptionsElement !== undefined) {
167- // this.emit('options.selected', evt.detail.options, this.selectedOptionsElement)
168- // }
169- //
170- // if (this.inputElement !== undefined) {
171- // this.emit('options.selected', evt.detail.options, this.inputElement)
172- // }
173-
174166 // if (this.checkValidity()) {
175167 // this.removeAttribute('invalid')
176168 // } else {
@@ -233,13 +225,6 @@ class AuthorMenuElement extends AuthorBaseElement(HTMLElement) {
233225 value : this . open
234226 } )
235227
236- case 'placeholder' :
237- if ( this . selectedOptionsElement ) {
238- this . selectedOptionsElement . update ( )
239- }
240-
241- break
242-
243228 case 'size' :
244229 return this . PRIVATE . throwSizeAttributeWarning ( )
245230 }
@@ -351,16 +336,6 @@ class AuthorMenuElement extends AuthorBaseElement(HTMLElement) {
351336 }
352337
353338 this . optionsElement . addOptions ( sourceElement . children )
354-
355- if ( sourceElement . localName === 'select' ) {
356- let selectedOptionsElement = document . createElement ( 'author-selected-options' )
357- selectedOptionsElement . slot = 'selectedoptions'
358- this . appendChild ( selectedOptionsElement )
359-
360- if ( ! this . multiple ) {
361- this . selectedOptionsElement . add ( this . optionsElement . options [ this . selectedIndex ] )
362- }
363- }
364339 }
365340
366341 this . PRIVATE . injected = true
You can’t perform that action at this time.
0 commit comments