mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-03 10:47:31 +01:00
fix: ctrl+a on results doesn't work properly
This commit is contained in:
parent
822af44a47
commit
5f57a9f60d
@ -66,7 +66,7 @@ const props = defineProps({
|
|||||||
const emit = defineEmits(['confirm', 'hide']);
|
const emit = defineEmits(['confirm', 'hide']);
|
||||||
const slots = useSlots();
|
const slots = useSlots();
|
||||||
|
|
||||||
const { trapRef } = useFocusTrap();
|
const { trapRef } = useFocusTrap({ disableAutofocus: true });
|
||||||
|
|
||||||
const hasHeader = computed(() => !!slots.header);
|
const hasHeader = computed(() => !!slots.header);
|
||||||
const hasBody = computed(() => !!slots.body);
|
const hasBody = computed(() => !!slots.body);
|
||||||
|
@ -339,6 +339,8 @@ const closeContext = () => {
|
|||||||
const showDeleteConfirmModal = (e: any) => {
|
const showDeleteConfirmModal = (e: any) => {
|
||||||
if (e && e.path && ['INPUT', 'TEXTAREA', 'SELECT'].includes(e.path[0].tagName))
|
if (e && e.path && ['INPUT', 'TEXTAREA', 'SELECT'].includes(e.path[0].tagName))
|
||||||
return;
|
return;
|
||||||
|
if (selectedRows.value.length === 0) return;
|
||||||
|
|
||||||
isDeleteConfirmModal.value = true;
|
isDeleteConfirmModal.value = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -453,11 +455,12 @@ const selectAllRows = (e: KeyboardEvent) => {
|
|||||||
}, []);
|
}, []);
|
||||||
};
|
};
|
||||||
|
|
||||||
const deselectRows = () => {
|
const deselectRows = (e: Event) => {
|
||||||
if (!isEditingRow.value) {
|
if (!isEditingRow.value) {
|
||||||
selectedRows.value = [];
|
selectedRows.value = [];
|
||||||
selectedField.value = null;
|
selectedField.value = null;
|
||||||
hasFocus.value = false;
|
if (e.type === 'blur')
|
||||||
|
hasFocus.value = false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user