mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-09 08:18:43 +01:00
fix: result table cells/rows not loses focus clicking outside
This commit is contained in:
parent
a80d227400
commit
0a3a4827dd
@ -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;
|
||||
|
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user