mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix customize config panel on FF (#425)
This commit is contained in:
parent
4e4b59d3d4
commit
73289bca6d
@ -68,7 +68,9 @@ class HaCustomizeAttribute extends Polymer.Element {
|
||||
if (wrapper.lastChild) {
|
||||
wrapper.removeChild(wrapper.lastChild);
|
||||
}
|
||||
this.$.child = child = document.createElement(tag);
|
||||
// Creating an element with upper case works fine in Chrome, but in FF it doesn't immediately
|
||||
// become a defined Custom Element. Polymer does that in some later pass.
|
||||
this.$.child = child = document.createElement(tag.toLowerCase());
|
||||
child.className = 'form-control';
|
||||
child.addEventListener('item-changed', () => {
|
||||
this.item = Object.assign({}, child.item);
|
||||
|
@ -97,7 +97,9 @@ window.hassUtil.dynamicContentUpdater = function (root, newElementTag, attribute
|
||||
if (rootEl.lastChild) {
|
||||
rootEl.removeChild(rootEl.lastChild);
|
||||
}
|
||||
customEl = document.createElement(newElementTag);
|
||||
// Creating an element with upper case works fine in Chrome, but in FF it doesn't immediately
|
||||
// become a defined Custom Element. Polymer does that in some later pass.
|
||||
customEl = document.createElement(newElementTag.toLowerCase());
|
||||
}
|
||||
|
||||
if (customEl.setProperties) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user