1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-07 06:15:36 +00:00

Fix tab key when editing cell

This commit is contained in:
Bram Wiepjes 2023-09-14 20:23:43 +00:00
parent cc4a302a07
commit a2479fd26d
4 changed files with 10 additions and 6 deletions
web-frontend/modules/database

View file

@ -1112,10 +1112,11 @@ export default {
this.$store.getters[
this.storePrefix + 'view/grid/isMultiSelectActive'
]) &&
// And there is no selected cell component blocking the keydown events. A single
// line text field can for example block this while it's in an editing state.
// And there is no selected cell component blocking the select next events. A
// single line text field can for example block this while it's in an editing
// state.
this.selectedCellComponents.every((component) => {
return component.canKeyDown()
return component.canSelectNext(event)
})
) {
event.preventDefault()

View file

@ -211,6 +211,9 @@ export default {
* While the modal is open, all key combinations related to the field must be
* ignored.
*/
canSelectNext() {
return !this.modalOpen
},
canKeyDown() {
return !this.modalOpen
},

View file

@ -180,6 +180,9 @@ export default {
* While the modal is open, all key combinations related to the field must be
* ignored.
*/
canSelectNext() {
return !this.modalOpen
},
canKeyDown() {
return !this.modalOpen
},

View file

@ -218,9 +218,6 @@ export default {
canEmpty() {
return !this.editing
},
canKeyDown() {
return !this.editing
},
getError() {
return this.getValidationError(this.editing ? this.copy : this.value)
},