File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ export const Panel = (props: PanelProps) => {
132
132
< Show when = { local . open } >
133
133
< ul
134
134
{ ...leftProps }
135
- id = { ' sub-panel' }
135
+ data-ytmd- sub-panel= { true }
136
136
ref = { setPanel }
137
137
class = { panelStyle ( ) }
138
138
style = { {
Original file line number Diff line number Diff line change @@ -250,8 +250,8 @@ export const TitleBar = (props: TitleBarProps) => {
250
250
if (
251
251
e . target instanceof HTMLElement &&
252
252
! (
253
- e . target . closest ( '# main-panel' ) ||
254
- e . target . closest ( '# sub-panel' )
253
+ e . target . closest ( 'nav[data-ytmd- main-panel] ' ) ||
254
+ e . target . closest ( 'ul[data-ytmd- sub-panel] ' )
255
255
)
256
256
) {
257
257
setOpenTarget ( null ) ;
@@ -266,7 +266,7 @@ export const TitleBar = (props: TitleBarProps) => {
266
266
} ) ;
267
267
268
268
return (
269
- < nav id = { ' main-panel' } class = { titleStyle ( ) } data-macos = { props . isMacOS } >
269
+ < nav data-ytmd- main-panel= { true } class = { titleStyle ( ) } data-macos = { props . isMacOS } >
270
270
< IconButton
271
271
onClick = { ( ) => setCollapsed ( ! collapsed ( ) ) }
272
272
style = { {
You can’t perform that action at this time.
0 commit comments