Reset the query on grid change in a smarter way.

This commit is contained in:
Dermot Duffy
2023-08-11 19:49:42 -07:00
parent fe2adb5b89
commit cc77caa96d
10 changed files with 116 additions and 108 deletions
+2 -5
View File
@@ -301,7 +301,7 @@ describe('MediaGridController', () => {
expect.objectContaining({
initLayout: false,
percentPosition: true,
transitionDuration: '0.3s',
transitionDuration: '0.2s',
}),
);
});
@@ -352,10 +352,7 @@ describe('MediaGridController', () => {
const controller = createController(host);
expect(controller.getSelected()).toBeNull();
const touchEvent = new TouchEvent('touchend');
children[1].dispatchEvent(touchEvent);
children[1].click();
expect(controller.getSelected()).toBe('1');
});