Uncaught DOMException: Failed to execute 'matches' on 'Element': The provided selector is empty.
Question
Hi there,
I m getting below error while dropping components on the canvas.
This only occurs if i have already some disabled components on the canvas.
Uncaught DOMException: Failed to execute 'matches' on 'Element': The provided selector is empty. at r.matches (webpack-internal:///./node_modules/grapesjs/dist/grapes.min.js:12:222000) at r.validTarget (webpack-internal:///./node_modules/grapesjs/dist/grapes.min.js:12:226532) at r.dimsFromTarget (webpack-internal:///./node_modules/grapesjs/dist/grapes.min.js:12:227021) at r.onMove (webpack-internal:///./node_modules/grapesjs/dist/grapes.min.js:12:224501) at I (webpack-internal:///./node_modules/grapesjs/dist/grapes.min.js:2:8823) at HTMLBodyElement.eval (webpack-internal:///./node_modules/grapesjs/dist/grapes.min.js:2:9025) at HTMLBodyElement.eval (webpack-internal:///./node_modules/grapesjs/dist/grapes.min.js:2:2169)
grapes.min.js?a826:12 Uncaught TypeError: Cannot read property 'indexEl' of undefined at r.move (grapes.min.js?a826:12) at eval (grapes.min.js?a826:12) at Array.forEach (<anonymous>) at r.endMove (grapes.min.js?a826:12) at I (grapes.min.js?a826:2) at r.eval (grapes.min.js?a826:2) at r.eval [as endMove] (grapes.min.js?a826:2) at i (grapes.min.js?a826:12) at t.value (grapes.min.js?a826:12) at t.value (grapes.min.js?a826:12)
Hope this helps to debug.
any suggestion to handle above exception would be really helpfull.
Thanks in advance.
Answers (1)
Follow the issue template if you're submitting a BUG
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2811
[BUG]: Failed to execute 'appendChild' on 'Node'
Hello. I am getting this error in the console: Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'N...
Issue #1520
[Bug] On this.components() Error : Uncaught TypeError: Cannot read property 'each' of undefined
Get below error for this.components() not sure if it is bug or I am doing something wrong. Uncaught TypeError: Cannot read property 'each'...
Issue #2029
[Question/Bug] grapesjs throws a DOMException if you import HTML contents with invalid (numbered) attributes
Hi @artf , We got a report that when you import some HTML code with incorrect attributes, such as <td class="cell" 01234="0" >Hello world!...
Issue #2715
I have added the custom font using the method below but that font is only working in few cases
There is one font issue when i click on any element it not show the current font of the element, i added custom code for add my custom font...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.