Skip to content

Fix security issue editing folder with password, and refactor and the bookmarks file #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mohammad-mghn
Copy link
Contributor

No description provided.

Comment on lines +23 to +29
useEffect(() => {
if (isOpen) {
setTimeout(() => {
inputRef.current?.focus()
}, 0)
}
}, [isOpen])
Copy link
Contributor

@erfan-goodarzi erfan-goodarzi Jul 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good idea but when we are dealing with DOM its better to use useLayoutEffect.

since its runs synchronously after all DOM mutations we may not need timeout. even if u are going to use timeout, consider the cleanup function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants