fix: Fixes issue where the Super mobile toolbar would not correctly close on dismissing keyboard

This commit is contained in:
Aman Harwara
2023-02-27 15:02:40 +05:30
parent a1de560a2c
commit b3263bfdab

View File

@@ -198,8 +198,12 @@ const MobileToolbarPlugin = () => {
return ( return (
<> <>
{modal} {modal}
<div tabIndex={-1} className="flex w-full flex-shrink-0 border-t border-border bg-contrast" ref={toolbarRef}> <div className="flex w-full flex-shrink-0 border-t border-border bg-contrast">
<div className={classNames('flex items-center gap-1 overflow-x-auto', '[&::-webkit-scrollbar]:h-0')}> <div
tabIndex={-1}
className={classNames('flex items-center gap-1 overflow-x-auto', '[&::-webkit-scrollbar]:h-0')}
ref={toolbarRef}
>
{items.map((item) => { {items.map((item) => {
return ( return (
<button <button