Closed Brendonovich closed 5 months ago
Thanks for opening this issue! A maintainer will review it soon.
Hey there @Brendonovich, thanks for raising this, but, at the moment active work is being put in to resolve these issues in the next release of Million, so, for this isn't a huge problem as such.
Also, if you're using Auto mode, what was the use of using the block()
function, still?
@Aslemammad can provide more insight on this, though
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days.
What version of
million
are you using?2.6.4
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Mac
What browser are you using?
Brave
Describe the Bug
When Spacedrive's
SearchBar
component is wrapped inblock
, focusing it using either a click or keyboard navigation causes the input to immediately be un-focused, firing theonBlur
handler. This could have something to do with ouronFocus
handler setting state further up the tree. I haven't made a minimal repro, but this is very reproducible within spacedrive. Head to a page like Recents and focus the search bar. A colleague has managed to fix this by adding// million-ignore
to ourTopBar
component, but the fact that turning off auto mode and usingblock
onSearchBar
causes it is still probably cause for concern.What's the expected result?
SearchBar
should stay focused.Link to Minimal Reproducible Example
https://github.com/spacedriveapp/spacedrive/tree/to-the-moon
Participation