Make scrollIntoView center on the "Add channels" button.
This commit is contained in:
parent
29299903c3
commit
7dd7994e01
|
@ -66,7 +66,9 @@ export const Channels = forwardRef< ChannelsRef, ChannelsProps >(
|
|||
scrollIntoAddChannels: () => {
|
||||
setExpanded( true );
|
||||
addChannelsButtonRef.current?.focus();
|
||||
addChannelsButtonRef.current?.scrollIntoView();
|
||||
addChannelsButtonRef.current?.scrollIntoView( {
|
||||
block: 'center',
|
||||
} );
|
||||
},
|
||||
} ),
|
||||
[]
|
||||
|
|
Loading…
Reference in New Issue