mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-13 04:16:34 +00:00
Revert "make more-info- tags in dynamicContentUpdater lowercase" (#221)
This commit is contained in:
parent
5d223c8da4
commit
e509ed07a0
@ -45,7 +45,7 @@ Polymer({
|
||||
}
|
||||
} else {
|
||||
window.hassUtil.dynamicContentUpdater(
|
||||
this, 'more-info-' + window.hassUtil.stateMoreInfoType(stateObj),
|
||||
this, 'MORE-INFO-' + window.hassUtil.stateMoreInfoType(stateObj).toUpperCase(),
|
||||
{ hass: this.hass, stateObj: stateObj, isVisible: true });
|
||||
}
|
||||
},
|
||||
|
@ -76,7 +76,7 @@ window.hassUtil.dynamicContentUpdater = function (root, newElementTag, attribute
|
||||
var rootEl = Polymer.dom(root);
|
||||
var customEl;
|
||||
|
||||
if (rootEl.lastChild && rootEl.lastChild.tagName.toLowerCase() === newElementTag) {
|
||||
if (rootEl.lastChild && rootEl.lastChild.tagName === newElementTag) {
|
||||
customEl = rootEl.lastChild;
|
||||
} else {
|
||||
if (rootEl.lastChild) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user