Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selection is empty when sliding to select a custom inline element such as a button; expected to be the currently selected element #5806

Open
daifuyang opened this issue Feb 18, 2025 · 0 comments
Labels

Comments

@daifuyang
Copy link

Description
A clear and concise description of what the bug is.

Recording
https://app.screencastify.com/v3/watch/8iWG7Ab65tvhZ6AG28ay

Sandbox
https://codesandbox.io/p/sandbox/nxlvks

Steps
To reproduce the behavior:

  1. Slide to select element
  2. Click to get selection
  3. Trigger null

Using the keyboard to move the cursor to select will not return null. Press shift + right

Expectation
Returns the correct selection of the element and can update custom values

Environment

  • Slate Version: [0.112]
  • Operating System: [macos]
  • Browser: [Chrome 132.0.6834.160]
  • TypeScript Version: [5.7.2]

Context
Thank you very much for your contribution

@daifuyang daifuyang added the bug label Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant