diff --git a/cypress/support/e2e.js b/cypress/support/e2e.js index 07348c5c9..695a2d5db 100644 --- a/cypress/support/e2e.js +++ b/cypress/support/e2e.js @@ -17,7 +17,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 0d4df09c7..80445847e 100644 --- a/src/components/board/Stack.vue +++ b/src/components/board/Stack.vue @@ -118,6 +118,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 9c4248f38..d7d574c2e 100644 --- a/src/components/cards/CardItem.vue +++ b/src/components/cards/CardItem.vue @@ -130,6 +130,7 @@ export default { showArchived: state => state.showArchived, currentBoard: state => state.currentBoard, showCardCover: state => state.showCardCover, + shortcutLock: state => state.shortcutLock, }), ...mapGetters([ 'isArchived', @@ -205,6 +206,9 @@ export default { }, methods: { focus(card) { + if (this.shortcutLock) { + return + } card = this.$refs[`card${card}`] card.focus() },