mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 21:15:07 +02:00
Merge pull request #4628 from huffman/fix-selection-error
Fix error in entity properties not showing selections
This commit is contained in:
commit
61e6c0461b
1 changed files with 8 additions and 1 deletions
|
@ -211,7 +211,14 @@
|
||||||
disableChildren(document.getElementById("properties-list"), 'input');
|
disableChildren(document.getElementById("properties-list"), 'input');
|
||||||
} else {
|
} else {
|
||||||
var activeElement = document.activeElement;
|
var activeElement = document.activeElement;
|
||||||
var selected = activeElement.selectionStart == 0 && activeElement.selectionEnd == activeElement.value.length;
|
|
||||||
|
try {
|
||||||
|
var selected = (activeElement
|
||||||
|
&& activeElement.selectionStart == 0
|
||||||
|
&& activeElement.selectionEnd == activeElement.value.length);
|
||||||
|
} catch (e) {
|
||||||
|
var selected = false;
|
||||||
|
}
|
||||||
|
|
||||||
var properties = data.selections[0].properties;
|
var properties = data.selections[0].properties;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue