Skip to content

Commit

Permalink
fix(VDataTable): change mobile default to false (#19744)
Browse files Browse the repository at this point in the history
Co-authored-by: John Leider <[email protected]>
  • Loading branch information
webdevnerdstuff and johnleider committed May 3, 2024
1 parent 6aea5e4 commit a194622
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/api-generator/src/locale/en/display.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"props": {
"mobile": "Explicitly designate as a mobile display configuration.",
"mobileBreakpoint": "Overrides the display configuration default."
"mobile": "Determines the display mode of the component. If true, the component will be displayed in mobile mode. If false, the component will be displayed in desktop mode. If null, will be based on the current mobile-breakpoint",
"mobileBreakpoint": "Overrides the display configuration default screen size that the component should be considered in mobile."
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const makeVNavigationDrawerProps = propsFactory({
...makeBorderProps(),
...makeComponentProps(),
...makeDelayProps(),
...makeDisplayProps(),
...makeDisplayProps({ mobile: null }),
...makeElevationProps(),
...makeLayoutItemProps(),
...makeRoundedProps(),
Expand Down
4 changes: 2 additions & 2 deletions packages/vuetify/src/composables/display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ export function createDisplay (options?: DisplayOptions, ssr?: SSROptions): Disp

export const makeDisplayProps = propsFactory({
mobile: {
type: Boolean,
default: null,
type: Boolean as PropType<boolean | null>,
default: false,
},
mobileBreakpoint: [Number, String] as PropType<number | DisplayBreakpoint>,
}, 'display')
Expand Down

0 comments on commit a194622

Please sign in to comment.