fix(core): Fix type error
Ensure that values passed to `DomRenderer#setElementAttribute` are strings. Currently, booleans can be passed to this method, resulting in failures when running in Dart checked mode.
This commit is contained in:
parent
46dd5fcbb0
commit
6c3c6060a5
|
@ -184,7 +184,7 @@ export class AppView implements ChangeDispatcher, RenderEventDispatcher {
|
||||||
if (b.isElementProperty()) {
|
if (b.isElementProperty()) {
|
||||||
this.renderer.setElementProperty(elementRef, b.name, currentValue);
|
this.renderer.setElementProperty(elementRef, b.name, currentValue);
|
||||||
} else if (b.isElementAttribute()) {
|
} else if (b.isElementAttribute()) {
|
||||||
this.renderer.setElementAttribute(elementRef, b.name, currentValue);
|
this.renderer.setElementAttribute(elementRef, b.name, `${currentValue}`);
|
||||||
} else if (b.isElementClass()) {
|
} else if (b.isElementClass()) {
|
||||||
this.renderer.setElementClass(elementRef, b.name, currentValue);
|
this.renderer.setElementClass(elementRef, b.name, currentValue);
|
||||||
} else if (b.isElementStyle()) {
|
} else if (b.isElementStyle()) {
|
||||||
|
|
Loading…
Reference in New Issue