mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 00:15:48 +01:00
🐛 Fix onBlurCapture in the Dropdown of overseerr
This commit is contained in:
@@ -13,7 +13,7 @@ import { showNotification } from '@mantine/notifications';
|
|||||||
import { useConfig } from '../../tools/state';
|
import { useConfig } from '../../tools/state';
|
||||||
import { IModule } from '../ModuleTypes';
|
import { IModule } from '../ModuleTypes';
|
||||||
import { OverseerrModule } from '../overseerr';
|
import { OverseerrModule } from '../overseerr';
|
||||||
import OverseerrMediaDisplay from '../overseerr/OverseerrMediaDisplay';
|
import { OverseerrMediaDisplay } from '../common';
|
||||||
|
|
||||||
const useStyles = createStyles((theme) => ({
|
const useStyles = createStyles((theme) => ({
|
||||||
hide: {
|
hide: {
|
||||||
@@ -148,8 +148,9 @@ export default function SearchBar(props: any) {
|
|||||||
withinPortal
|
withinPortal
|
||||||
shadow="md"
|
shadow="md"
|
||||||
radius="md"
|
radius="md"
|
||||||
|
zIndex={100}
|
||||||
trapFocus
|
trapFocus
|
||||||
transition="pop-bottom-right"
|
transition="pop-top-right"
|
||||||
>
|
>
|
||||||
<Popover.Target>
|
<Popover.Target>
|
||||||
<Autocomplete
|
<Autocomplete
|
||||||
@@ -176,8 +177,8 @@ export default function SearchBar(props: any) {
|
|||||||
/>
|
/>
|
||||||
</Popover.Target>
|
</Popover.Target>
|
||||||
|
|
||||||
<Popover.Dropdown onBlurCapture={() => setOpened(false)}>
|
<Popover.Dropdown onMouseLeave={() => setOpened(false)}>
|
||||||
<ScrollArea style={{ height: 400 }} offsetScrollbars>
|
<ScrollArea style={{ height: 400, width: 400 }} offsetScrollbars>
|
||||||
{OverseerrResults.slice(0, 5).map((result, index) => (
|
{OverseerrResults.slice(0, 5).map((result, index) => (
|
||||||
<React.Fragment key={index}>
|
<React.Fragment key={index}>
|
||||||
<OverseerrMediaDisplay key={result.id} media={result} />
|
<OverseerrMediaDisplay key={result.id} media={result} />
|
||||||
|
|||||||
Reference in New Issue
Block a user