Skip to content
Snippets Groups Projects
Commit 3a1a3215 authored by Matthias Konitzny's avatar Matthias Konitzny :fire:
Browse files

Protecting selectlayer against edge cases.

parent 888425cc
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,11 @@ function SelectLayer({
};
const handlePointerUp = (e: React.PointerEvent<HTMLDivElement>) => {
if (!isEnabled) {
if (
!isEnabled ||
selectionStart == undefined ||
selectionEnd == undefined
) {
return;
}
e.preventDefault();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment