Merge branch 'dev' into fix_vnselect_scroll
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2025-04-29 12:22:54 +00:00
commit 7cf10d391c
2 changed files with 5 additions and 6 deletions

View File

@ -214,7 +214,7 @@ onBeforeMount(() => {
}); });
onMounted(async () => { onMounted(async () => {
if ($props.isEditable) document.addEventListener('mousedown', mousedownHandler); if ($props.isEditable) document.addEventListener('click', clickHandler);
mode.value = mode.value =
quasar.platform.is.mobile && !$props.disableOption?.card quasar.platform.is.mobile && !$props.disableOption?.card
? CARD_MODE ? CARD_MODE
@ -237,7 +237,7 @@ onMounted(async () => {
}); });
onUnmounted(async () => { onUnmounted(async () => {
if ($props.isEditable) document.removeEventListener('mousedown', mousedownHandler); if ($props.isEditable) document.removeEventListener('click', clickHandler);
}); });
watch( watch(
@ -385,7 +385,7 @@ function hasEditableFormat(column) {
if (isEditableColumn(column)) return 'editable-text'; if (isEditableColumn(column)) return 'editable-text';
} }
const mousedownHandler = async (event) => { const clickHandler = async (event) => {
const clickedElement = event.target.closest('td'); const clickedElement = event.target.closest('td');
const isDateElement = event.target.closest('.q-date'); const isDateElement = event.target.closest('.q-date');
const isTimeElement = event.target.closest('.q-time'); const isTimeElement = event.target.closest('.q-time');
@ -408,7 +408,6 @@ const mousedownHandler = async (event) => {
} }
if (isEditableColumn(column)) { if (isEditableColumn(column)) {
event.preventDefault();
await renderInput(Number(rowIndex), colField, clickedElement); await renderInput(Number(rowIndex), colField, clickedElement);
} }
}; };

View File

@ -23,7 +23,7 @@ describe('InvoiceOut list', () => {
cy.dataCy('InvoiceOutDownloadPdfBtn').click(); cy.dataCy('InvoiceOutDownloadPdfBtn').click();
}); });
it('should download all pdfs', () => { it.skip('should download all pdfs', () => {
cy.get(columnCheckbox).click(); cy.get(columnCheckbox).click();
cy.dataCy('InvoiceOutDownloadPdfBtn').click(); cy.dataCy('InvoiceOutDownloadPdfBtn').click();
}); });
@ -31,7 +31,7 @@ describe('InvoiceOut list', () => {
it('should open the invoice descriptor from table icon', () => { it('should open the invoice descriptor from table icon', () => {
cy.get(firstSummaryIcon).click(); cy.get(firstSummaryIcon).click();
cy.get('.cardSummary').should('be.visible'); cy.get('.cardSummary').should('be.visible');
cy.get('.summaryHeader > div').should('include.text', 'V10100001'); cy.get('.summaryHeader > div').should('include.text', 'A1111111');
}); });
it('should open the client descriptor', () => { it('should open the client descriptor', () => {