minHeight is no longer respected in slate-react 0.62+
See original GitHub issueDescription This commit introduces a regression where slate editors min-height is now constantly being set.
Recording
Sandbox https://stackblitz.com/edit/react-f4v5on
Expectation I should be able to control the minHeight of my editor based on this value
Environment
- Slate Version: 0.62+
Context
I’m no longer able to specify a minHeight
on my <Editable />
and have it be respected, this is problematic because I have been relying on minHeight to specify the size my editors initialize with
Issue Analytics
- State:
- Created 2 years ago
- Reactions:12
- Comments:6 (1 by maintainers)
Top Results From Across the Web
slate-react / Editable / min-height-style · Issue #4233 - GitHub
So if this is not absolutely necessary, it would be better to remove this styling so that an !import is not necessary. Screenshots...
Read more >Slate React
Your custom event handler can control whether or not Slate should execute its own event handling for a given event after your handler...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve been able to restore the older functionality by directly commenting out the useEffect in slate-react with this patch: https://gist.github.com/hanford/4f5c2257ef51500cf4182efbe86194fe
I’d recommend using this with https://www.npmjs.com/package/patch-package
As a workaround: