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 e71c427 commit e1d3b5fCopy full SHA for e1d3b5f
1 file changed
src/utils.js
@@ -116,9 +116,9 @@ export function getTarget(target) {
116
}
117
118
if (typeof target === 'string' && document) {
119
- const selection = document.querySelector(target);
+ let selection = document.querySelector(target);
120
if (selection === null) {
121
- return document.querySelector(`#${target}`);
+ selection = document.querySelector(`#${target}`);
122
123
124
throw new Error(`The target '${target}' could not be identified in the dom, tip: check spelling`);
0 commit comments