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:
parent
cc4a302a07
commit
a2479fd26d
4 changed files with 10 additions and 6 deletions
web-frontend/modules/database
components/view/grid
mixins
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
},
|
||||
|
|
|
@ -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
|
||||
},
|
||||
|
|
|
@ -218,9 +218,6 @@ export default {
|
|||
canEmpty() {
|
||||
return !this.editing
|
||||
},
|
||||
canKeyDown() {
|
||||
return !this.editing
|
||||
},
|
||||
getError() {
|
||||
return this.getValidationError(this.editing ? this.copy : this.value)
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue