You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
More of an FYI than a bug when using Vue-Test-Utils to simulate interaction in jest.
After the changes to how trigger('focus') works in vue-test-utils >= 1.1.4:
`wrapper.find('input').trigger('focus') would only open the popup the first time it was called
Any additional calls would not open the popup
Workaround:
it was necessary to call wrapper.find('input').element.blur() after the datetime or time panel popups are closed to have `trigger('focus') open the popup again.
Vue2-datepicker version: 3.10.1
Vue version: 2.6.14
vue-test-utils: 1.1.4
Browser: jest / jsdom
More of an FYI than a bug when using Vue-Test-Utils to simulate interaction in jest.
After the changes to how
trigger('focus')
works in vue-test-utils >= 1.1.4:Workaround:
wrapper.find('input').element.blur()
after the datetime or time panel popups are closed to have `trigger('focus') open the popup again.See: vuejs/vue-test-utils#1777 (comment)
The text was updated successfully, but these errors were encountered: