slate icon indicating copy to clipboard operation
slate copied to clipboard

autoCapitalize does not work when a placeholder is specified.

Open ItsSmiffy opened this issue 4 years ago • 2 comments

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.

ItsSmiffy avatar Oct 27 '20 10:10 ItsSmiffy

The placeholder also seems to break autoFocus.

knubie avatar Apr 08 '22 13:04 knubie

I'm running into this too. Does anyone know of a workaround for this issue?

axelson avatar Jun 01 '23 16:06 axelson