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

Create edit view#13

Open
will-nemo wants to merge 2 commits into
masterfrom
create-edit-view
Open

Create edit view#13
will-nemo wants to merge 2 commits into
masterfrom
create-edit-view

Conversation

@will-nemo

Copy link
Copy Markdown
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
Comment thread src/EditView.jsx
************************************/

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

Copy link
Copy Markdown

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
Copy Markdown
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