slate
slate copied to clipboard
autoCapitalize does not work when a placeholder is specified.
Do you want to request a feature or report a bug?
Bug
What's the current behavior?
When a placeholder is provided the editor does not respect the autoCapitalize attribute. Focusing and typing in an editor with autoCapitalize="sentences" does not auto capitalize the start of the first sentence. When the editor does not contain a placeholder, the behaviour is as expected.
Example: https://d5vw9.csb.app/
Browser: Safari (mobile) OS: iOS 13.6 Slate: 0.59.0
What's the expected behavior?
The first character of the initial sentence is auto capitalized, like when no placeholder is specified.
The placeholder also seems to break autoFocus
.
I'm running into this too. Does anyone know of a workaround for this issue?