Skip to content

Commit

Permalink
fix: allow selection of element by id with special chars (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
kineticjs authored Jan 6, 2023
1 parent 973abe9 commit 5050e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/modules/ui/ControlTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ ControlTree.prototype.setSelectedElement = function (elementID) {
return;
}

selectedElement = this._controlTreeContainer.querySelector('#' + elementID);
selectedElement = this._controlTreeContainer.querySelector(`[id="${elementID}"]`);

if (selectedElement === null) {
console.warn('The selected element is not a child of the ControlTree');
Expand Down

0 comments on commit 5050e89

Please sign in to comment.