Skip to content

onValueChange not firing on MacOS "Add period with double-space" feature #5910

@chenhuang444

Description

@chenhuang444

Description
When triggering MacOS's "Add period with double-space" feature, onSelectionChange is fired rather than onValueChanged

Recording
Image

Sandbox
https://codesandbox.io/p/sandbox/laughing-edison-h7kxvk

Steps
To reproduce the behavior:

  1. Make sure "add period with double-space" is enabled (should be enabled by default)
    1.1 System Settings > Keyboard > Text Input > Edit… > “Add period with double-space”
  2. Type any character (double space must be after a non-whitespace character)
  3. tap "space" twice in quick succession.
  4. See error

Expectation
onValueChange fired

Environment

  • Slate Version: 0.117.0
  • Operating System: macOS 14.5 (23F79)
  • Browser: Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions