Vuetify Version: 2.0.5
Vue Version: 2.6.10
Browsers: Chrome 75.0.3770.142
OS: Mac OS 10.13.0
Put disable-sort into VDataTable and switch to mobile view
Must not render sort select on mobile view at:
https://github.com/vuetifyjs/vuetify/blob/6de09720c91f283b994fc331d9a02c5063876b4b/packages/vuetify/src/components/VDataTable/VDataTableHeaderMobile.ts#L84
VDataTable with property disable-sort generates sort selection in mobile view
I'd say it's intended. To disable means to disable, not to hide, if you want to hide there's hide-default-header for this.
You may want to disable sort when for example you're loading data and you don't want the layout to jump.
Understand, but property hide-default-header hides header at all, even in not mobile mode. In desktop mode header is necessary.
You can hide them only for mobile, just bind a boolean. I wonder if it could accept other values than bools, for example hide-default-header="mobile". Otherwise you need to apply the condition so either you need to know when the table switches to mobile by default or you need to duplicate the value of mobile-breakpoint prop.
@nekosaur thoughts?
hmm. well any changes to how hide-default-header or disable-sort works would be a (potentially) breaking feature request. for now I'd say this is working as intended?
This is working as intended. Easy to solve in userland.
If you have any additional questions, please reach out to us in our Discord community.
I'd say it's intended. To disable means to disable, not to hide, if you want to hide there's
hide-default-headerfor this.
You may want to disable sort when for example you're loading data and you don't want the layout to jump.
Sorry, I think to disable sort and display the sort menu on mobile which makes no sense
Most helpful comment
You can hide them only for mobile, just bind a boolean. I wonder if it could accept other values than bools, for example
hide-default-header="mobile". Otherwise you need to apply the condition so either you need to know when the table switches to mobile by default or you need to duplicate the value ofmobile-breakpointprop.@nekosaur thoughts?