Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Create edit view #13

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Create edit view #13

wants to merge 2 commits into from

Conversation

will-nemo
Copy link
Member

No description provided.

@will-nemo will-nemo self-assigned this Apr 11, 2020
@will-nemo will-nemo linked an issue Apr 11, 2020 that may be closed by this pull request
************************************/

return (
<textarea style={{height: 'inherit'}} {...rest} onChange={onValueChange}></textarea>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why you're setting the styling here as opposed to CSS?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The height of the 'EditMode' will be determined by the user passing down a height. This text area will calculate the height based off that passed in height (will be shorter at some point). Since it's dynamic i should be doing this styling inline.

Also from what i've seen these npm packages don't usually use style sheets. Need to determine the best way to do this. Might make the most sense to keep all functionality on a component since it's the one thing being imported

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Edit View
3 participants