mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-04-24 18:42:32 +08:00
fix: innerHTML should be string
This commit is contained in:
parent
831987885b
commit
f96f8880b9
@ -222,7 +222,7 @@ describe('Transform JSX', () => {
|
|||||||
onClick() {
|
onClick() {
|
||||||
calls.push(3);
|
calls.push(3);
|
||||||
},
|
},
|
||||||
innerHTML: 2,
|
innerHTML: '2',
|
||||||
class: ['a', 'b'],
|
class: ['a', 'b'],
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -418,7 +418,7 @@ describe('variables outside slots', () => {
|
|||||||
},
|
},
|
||||||
render() {
|
render() {
|
||||||
const attrs = {
|
const attrs = {
|
||||||
innerHTML: this.val,
|
innerHTML: `${this.val}`,
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<A inc={this.inc}>
|
<A inc={this.inc}>
|
||||||
@ -450,7 +450,7 @@ describe('variables outside slots', () => {
|
|||||||
},
|
},
|
||||||
render() {
|
render() {
|
||||||
const attrs = {
|
const attrs = {
|
||||||
innerHTML: this.val,
|
innerHTML: `${this.val}`,
|
||||||
};
|
};
|
||||||
const textarea = <textarea id="textarea" {...attrs} />;
|
const textarea = <textarea id="textarea" {...attrs} />;
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user