fix(Calendar): incorrect month title after auto scroll (#5569)
This commit is contained in:
@@ -419,7 +419,7 @@ test('should scroll to current month when show', async done => {
|
||||
});
|
||||
|
||||
Element.prototype.scrollIntoView = function() {
|
||||
expect(this).toEqual(wrapper.findAll('.van-calendar__month').at(3).element);
|
||||
expect(this.parentNode).toEqual(wrapper.findAll('.van-calendar__month').at(3).element);
|
||||
done();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user