fix: result table cells/rows not loses focus clicking outside

This commit is contained in:
Fabio Di Stasio 2022-06-26 10:21:17 +02:00
parent a80d227400
commit 0a3a4827dd
2 changed files with 6 additions and 1 deletions

View File

@ -308,6 +308,8 @@ export default defineComponent({
};
const adjustListPosition = () => {
if (!optionList.value) return;
const element = el.value;
let { left, top } = element.getBoundingClientRect();
const { left: offsetLeft = 0, top: offsetTop = 0 } = props.dropdownOffsets;

View File

@ -4,6 +4,7 @@
class="vscroll no-outline"
tabindex="0"
:style="{'height': resultsSize+'px'}"
@blur="deselectRows"
@keyup.delete="showDeleteConfirmModal"
@keydown.esc="deselectRows"
>
@ -451,8 +452,10 @@ const selectAllRows = (e: KeyboardEvent) => {
};
const deselectRows = () => {
if (!isEditingRow.value)
if (!isEditingRow.value) {
selectedRows.value = [];
selectedField.value = null;
}
};
const contextMenu = (event: MouseEvent, cell: any) => {