We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33cb28d commit 3bd8ceeCopy full SHA for 3bd8cee
src/higher-order/with-visual-guide/visual-guide.js
@@ -21,7 +21,7 @@ const VisualGuideer = props => {
21
22
const computedStyles = useMemo( () => {
23
const firstElSelector = highlightSelector.split( ',' )[ 0 ]
24
- const el = getEditorDom().querySelector( firstElSelector )
+ const el = getEditorDom()?.querySelector( firstElSelector )
25
26
// We can sometimes not find the element when we switched device types,
27
// just try again when that happens.
0 commit comments