Issue #3861Opened October 12, 2021by heminei0 reactions

BUG: JS error when press "s" or "w" key - Cannot read properties of undefined (reading 'indexOf')

Question

GrapesJS version

  • I confirm to use the latest version of GrapesJS

What browser are you using?

Chrome Version 94.0.4606.81 (Official Build) (64-bit)

Reproducible demo link

https://jsfiddle.net/szLp8h4n

Describe the bug

How to reproduce the bug?

  1. Select body element
  2. Press "s" or "w" key

What is the expected behavior? Should not throw an error in the console

What is the current behavior? Throws error in console:

ComponentNext.js?87ea:8 Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf')
    at eval (ComponentNext.js?87ea:8)
    at Array.forEach (<anonymous>)
    at child.run (ComponentNext.js?87ea:6)
    at child.callRun (CommandAbstract.js?8031:90)
    at Object.runCommand (index.js?e807:388)
    at Object.eval [as method] (index.js?30cb:157)
    at dispatch (keymaster.js?a202:143)
    at HTMLDocument.eval (keymaster.js?a202:330)
    at HTMLDocument.eval (FrameView.js?2616:441)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Answers (0)

No answers yet.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.