Fixed #130 - Keydown causes sort on sortable header
parent
90759903dc
commit
e2c18b460c
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="content-section layout-footer clearfix">
|
<div class="content-section layout-footer clearfix">
|
||||||
<span>PrimeVue 1.0.0-rc.5</span>
|
<span>PrimeVue 1.0.0-rc.6</span>
|
||||||
<div class="footer-links">
|
<div class="footer-links">
|
||||||
<a href="https://github.com/primefaces/primevue"><i class=" icon-github fa fa-github-square"></i></a>
|
<a href="https://github.com/primefaces/primevue"><i class=" icon-github fa fa-github-square"></i></a>
|
||||||
<a href="https://twitter.com/primevue"><i class="icon-twitter fa fa-twitter-square"></i></a>
|
<a href="https://twitter.com/primevue"><i class="icon-twitter fa fa-twitter-square"></i></a>
|
||||||
|
|
|
@ -156,7 +156,7 @@ export default {
|
||||||
this.$emit('checkbox-change', event);
|
this.$emit('checkbox-change', event);
|
||||||
},
|
},
|
||||||
onColumnKeyDown(event, col) {
|
onColumnKeyDown(event, col) {
|
||||||
if (event.currentTarget.nodeName === 'TH' && DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {
|
if (event.which === 13 && event.currentTarget.nodeName === 'TH' && DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {
|
||||||
this.$emit('column-click', {originalEvent: event, column: col});
|
this.$emit('column-click', {originalEvent: event, column: col});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -716,7 +716,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onColumnKeyDown(event, col) {
|
onColumnKeyDown(event, col) {
|
||||||
if (event.currentTarget.nodeName === 'TH' && DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {
|
if (event.which === 13 && event.currentTarget.nodeName === 'TH' && DomHandler.hasClass(event.currentTarget, 'p-sortable-column')) {
|
||||||
this.onColumnHeaderClick(event, col);
|
this.onColumnHeaderClick(event, col);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue