Skip to content

Commit 0f6b4ef

Browse files
author
Graham Butler
committed
remove references to child elements
1 parent a0686c3 commit 0f6b4ef

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

src/element.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)