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

Slate does not work in Firefox Iframes #4285

Closed
maclockard opened this issue May 24, 2021 · 1 comment · Fixed by #4758
Closed

Slate does not work in Firefox Iframes #4285

maclockard opened this issue May 24, 2021 · 1 comment · Fixed by #4758

Comments

@maclockard
Copy link

Description

When rendering a slate editor inside of an Iframe using firefox, the editor does not render the initial content and is not intractable. There are no errors in the console AFAIK.

Possibly related to #4170?

Recording

Firefox is on the left, chrome is on the right:

Screen.Recording.2021-05-24.at.11.02.22.AM.mov

Sandbox

This repros in the official slate examples: https://www.slatejs.org/examples/iframe

Steps
To reproduce the behavior:

  1. Go to https://www.slatejs.org/examples/iframe in Firefox
  2. Try to use the editor

You will see that the editor does not render the initial text and that you can't interact with it.

Expectation

The editor renders the initial content and is intractable in Firefox. This currently works in Chrome.

Environment

  • Slate Version: 0.63.0
  • Operating System: macOS
  • Browser: Firefox 88.0.1
@ottworks
Copy link

You can get the editor to work by opening the side menu and closing it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants