Skip to content

Commit cde80bf

Browse files
Removed all side effects related to text nodes
1 parent db830d2 commit cde80bf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/react-tvml/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,6 @@ function setInitialProperties(
116116
if (propName === CHILDREN) {
117117
if (type === 'style') {
118118
domElement.innerHTML = propValue;
119-
} else if (typeof propValue === 'string') {
120-
if (propValue !== '') domElement.textContent = propValue;
121-
} else if (typeof propValue === 'number') {
122-
domElement.textContent = `${propValue}`;
123119
}
124120
} else if (propName === DATAITEM) {
125121
if (propValue instanceof DataItem) {
@@ -248,8 +244,6 @@ function updateProperties(
248244
if (propName === CHILDREN) {
249245
if (type === 'style') {
250246
domElement.innerHTML = propValue;
251-
} else {
252-
domElement.textContent = propValue;
253247
}
254248
} else if (propName === DATAITEM) {
255249
if (propValue == null) {

0 commit comments

Comments
 (0)