Skip to content

height as a variable doesn't work #378

Answered by tiny-james
wallyhpipp asked this question in Q&A
Discussion options

You must be logged in to vote

When you say:

<Editor
init={{
// ... removed lines
height: { height },
// ... removed lines
}}
/>

You are assigning an object containing the property height instead of a number. You need to remove the brackets around it because you are already in a Javascript context.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wallyhpipp
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants