We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34d816c commit b7e2b81Copy full SHA for b7e2b81
packages/compass-components/src/components/drawer-portal.tsx
@@ -157,17 +157,11 @@ export const DrawerContentProvider: React.FunctionComponent<{
157
return;
158
}
159
160
- if (
161
- drawerCurrentTab &&
162
- drawerCurrentTab !== prevDrawerCurrentTabRef.current
163
- ) {
+ if (drawerCurrentTab) {
164
onDrawerSectionOpen?.(drawerCurrentTab);
165
166
167
168
- prevDrawerCurrentTabRef.current &&
169
170
+ if (prevDrawerCurrentTabRef.current) {
171
onDrawerSectionHide?.(prevDrawerCurrentTabRef.current);
172
173
0 commit comments