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