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

Last editor ID is never set #3309

Open
okmr-d opened this issue Jun 25, 2024 · 0 comments
Open

Last editor ID is never set #3309

okmr-d opened this issue Jun 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@okmr-d
Copy link

okmr-d commented Jun 25, 2024

Description

eventEditorStore.last is never set.
https://platejs.org/docs/api/core/store#last

eventEditorActions.last(editor.id) should be added

onFocus: (editor) => () => {
eventEditorActions.focus(editor.id);

Reproduction URL

No response

Reproduction steps

1. code

const lastEditorId = useEventEditorSelectors.last()
  1. Focus on Editor

  2. lastEditorId is not set



### Plate version

35.0.0

### Slate React version

0.105.0

### Screenshots

_No response_

### Logs

_No response_

### Browsers

_No response_

<!-- POLAR PLEDGE BADGE START -->
## Funding
* You can sponsor this specific effort via a [Polar.sh](https://polar.sh) pledge below
* We receive the pledge once the issue is completed & verified

<a href="https://polar.sh/udecode/plate/issues/3309">
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/api/github/udecode/plate/issues/3309/pledge.svg?darkmode=1">
  <img alt="Fund with Polar" src="https://polar.sh/api/github/udecode/plate/issues/3309/pledge.svg">
</picture>
</a>
<!-- POLAR PLEDGE BADGE END -->
@okmr-d okmr-d added the bug Something isn't working label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant