themesberg / themesberg/flowbite

Sidebar creates phantom letters when Turbo is invoked

Open
#437 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
9.4k
Forks
862
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Every time you invoke a turbo frame update on another part of the page, the sidebar component seems to add another single letter span element to existing links. When it does this, it also unhides the previous span that it created, so it infinitely keeps adding letters to the end of links in the sidebar with each invocation.

To Reproduce
Steps to reproduce the behavior:
Utilize sidebar component in an app. Trigger turbo frame - sidebar creates phantom letters.

Expected behavior
Additional letters aren't created.

Screenshots
Xnip2023-02-04_14-55-46

Desktop (please complete the following information):
MacOS 13.2
Chrome 109.0.5414.119

Smartphone (please complete the following information):
NA

Additional context
NA

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the sidebar component and reproduce the issue by triggering a Turbo frame update elsewhere, then inspect the sidebar links for added single-letter spans and previously hidden spans becoming visible. Done means repeated updates no longer create or reveal phantom letters.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, tailwindcss
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.