Skip to content

Commit

Permalink
fix(detachable): detach when lazy and inititally open
Browse files Browse the repository at this point in the history
fixes #9175
  • Loading branch information
KaelWD committed Oct 2, 2019
1 parent 9890255 commit 19bf5d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
2 changes: 2 additions & 0 deletions packages/vuetify/src/components/VMenu/__tests__/VMenu.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ describe('VMenu.ts', () => {
methods: { activate },
})
expect(activate).toHaveBeenCalled()
expect('Unable to locate target [data-app]').toHaveBeenTipped()
})

it('should update position dynamically', async () => {
Expand All @@ -145,6 +146,7 @@ describe('VMenu.ts', () => {
positionY: 220,
})
expect(content.attributes('style')).toMatchSnapshot()
expect('Unable to locate target [data-app]').toHaveBeenTipped()
})

it('should select next and previous tiles and skip non links/disabled', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ exports[`VTooltip should render component with custom eager and match snapshot 1

exports[`VTooltip should render component with min/max width and match snapshot 1`] = `
<span class="v-tooltip">
<div class="v-tooltip__content menuable__content__active"
style="left: 0px; max-width: 200px; min-width: 100px; opacity: 0.9; top: 12px; z-index: 8; display: none;"
>
<span>
content
</span>
</div>
<span>
activator
</span>
Expand All @@ -45,13 +38,6 @@ exports[`VTooltip should render component with min/max width and match snapshot

exports[`VTooltip should render component with value=true and match snapshot 1`] = `
<span class="v-tooltip">
<div class="v-tooltip__content menuable__content__active"
style="left: 0px; max-width: auto; opacity: 0.9; top: 12px; z-index: 8; display: none;"
>
<span>
content
</span>
</div>
<span>
activator
</span>
Expand Down
2 changes: 1 addition & 1 deletion packages/vuetify/src/mixins/detachable/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default mixins<options &
},

mounted () {
this.eager && this.initDetach()
this.hasContent && this.initDetach()
},

deactivated () {
Expand Down

1 comment on commit 19bf5d3

@KaelWD
Copy link
Member Author

@KaelWD KaelWD commented on 19bf5d3 Oct 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can spell ok

Please sign in to comment.