Skip to content

Commit

Permalink
fix(ktable, ktableview): resizeColumns should ignore right clicks (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo authored Sep 6, 2024
1 parent 1e3f271 commit 4a0e2f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/KTable/KTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,11 @@ const headerHeight = computed((): string => {
})
const startResize = (evt: MouseEvent, colKey: string) => {
// right clicks should be ignored
if (evt.button !== 0) {
return
}
let x = 0
let width = 0
Expand Down
5 changes: 5 additions & 0 deletions src/components/KTableView/KTableView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,11 @@ const headerHeight = computed((): string => {
})
const startResize = (evt: MouseEvent, colKey: string) => {
// right clicks should be ignored
if (evt.button !== 0) {
return
}
let x = 0
let width = 0
Expand Down

0 comments on commit 4a0e2f6

Please sign in to comment.