Skip to content

ScrollTo not work in chrome extension #286

@xyunsh

Description

@xyunsh

repo
code

When creating multiple accounts, need to scroll to the selected account when entering the page.

useEffect(() => {
    const timeoutId = setTimeout(() => {
      if (refList.current && currentIndex >= 0) {
        refList.current?.scrollTo({ index: currentIndex });
      }
    });

    return () => clearTimeout(timeoutId);
  }, []);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions