This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
What's the default when no Also, can you preserve the alphabetical ordering :) |
@tasti: @hellendag & I just discussed it in the chat - singling out style props is probably not the best idea 😄 It would be great to either allow to overwrite the whole style attribute (to customize it like this) or provide a custom className via props to allow generating hash based classNames with tools like JSS or CSSModules. Any preferences? Happy to update & change the PR |
@nikgraf: oops, saw the convo right after posting this 😛. Let's continue it in slack |
Here the conversation to provide some context:
|
I think we can open this up again as an issue … the PR is outdated |
Did this ever get refiled? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To avoid selection issues it is important the the div with the attribute contenteditable is expanded. Even in the examples minHeight was set to the container which led these issues:
https://draftjs.slack.com/files/nikgraf/F0RA7K0KW/focus_test_1.mov
In the RichText example it was working properly due setting min-height in CSS via deep selectors. I feel like this is not obvious and an easy trap to fall into. Exposing a prop and using it in all the examples it might help …