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

Browser tab stops responding and tab CPU usage goes 100% #591

Open
kullarkert opened this issue Nov 10, 2021 · 0 comments
Open

Browser tab stops responding and tab CPU usage goes 100% #591

kullarkert opened this issue Nov 10, 2021 · 0 comments

Comments

@kullarkert
Copy link

kullarkert commented Nov 10, 2021

I have latest version v0.9.0-beta8.

When changing text to heading and back several time browser tab stops responding and tab CPU goes to 100%.

Before latest version there was same problem but with larger scale. When trying to add new block between blocks and not entering text right away then tab stops responding.

Tried with:
Latest Chrome
Microsoft Edge
Brave
Mozilla

Edit:
This seems to be related with div focusing and causing tab to unrespond.
In older version(not sure with version, since compiled js does not have version number) this line causes crash and I had to comment out focusing part.

focus: function focus() {
    Array.prototype.forEach.call(this.getTextBlock(), function (el) {
      //el.focus();
    });
  }

I assume that div must have tabindex and if not then browser will crash.

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

No branches or pull requests

1 participant