We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04d3543 commit 3285518Copy full SHA for 3285518
ui/src/components/table/QTh.js
@@ -19,10 +19,13 @@ export default createComponent({
19
const vm = getCurrentInstance()
20
const { proxy: { $q } } = vm
21
22
+ const onClick = evt => { emit('click', evt) }
23
+
24
return () => {
25
if (props.props === void 0) {
26
return h('th', {
- class: props.autoWidth === true ? 'q-table--col-auto-width' : ''
27
+ class: props.autoWidth === true ? 'q-table--col-auto-width' : '',
28
+ onClick
29
}, hSlot(slots.default))
30
}
31
@@ -60,7 +63,7 @@ export default createComponent({
60
63
style: col.headerStyle,
61
64
onClick: evt => {
62
65
col.sortable === true && props.props.sort(col) // eslint-disable-line
- emit('click', evt)
66
+ onClick(evt)
67
68
69
0 commit comments