diff --git a/cypress/support/e2e.js b/cypress/support/e2e.js index 8e213da64..f76ab5383 100644 --- a/cypress/support/e2e.js +++ b/cypress/support/e2e.js @@ -21,7 +21,7 @@ import './commands.js' Cypress.on('uncaught:exception', (err) => { - return !err.message.includes('ResizeObserver loop limit exceeded') + return !err.message.includes('ResizeObserver loop limit exceeded') && !err.message.includes('ResizeObserver loop completed with undelivered notifications') }) // Alternatively you can use CommonJS syntax: diff --git a/src/components/board/Stack.vue b/src/components/board/Stack.vue index f3a51c39f..37ead724a 100644 --- a/src/components/board/Stack.vue +++ b/src/components/board/Stack.vue @@ -100,6 +100,7 @@ :placeholder="t('deck', 'Card name')" required pattern=".*\S+.*" + @focus="onCreateCardFocus" @keydown.esc="stopCardCreation"> diff --git a/src/components/cards/CardItem.vue b/src/components/cards/CardItem.vue index f1de67971..f0be5a275 100644 --- a/src/components/cards/CardItem.vue +++ b/src/components/cards/CardItem.vue @@ -109,6 +109,7 @@ export default { showArchived: state => state.showArchived, currentBoard: state => state.currentBoard, showCardCover: state => state.showCardCover, + shortcutLock: state => state.shortcutLock, }), ...mapGetters([ 'isArchived', @@ -184,6 +185,9 @@ export default { }, methods: { focus(card) { + if (this.shortcutLock) { + return + } card = this.$refs[`card${card}`] card.focus() },