basecamp / basecamp/lexxy

Toolbar/body disappears on page load (Turbo related?)

Open
#196 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.2k
Forks
119
Avg merge
4d 8h
Merged PRs (30d)
15

Description

Hello! Loving Lexxy so far, but I've got a weird bug (turn on sound for a voiceover):

https://github.com/user-attachments/assets/b0c451e1-e86b-4b45-a29a-cc9f29b98528

On a full page refresh everything behaves as expected. When I navigate via Turbo, Lexxy will appear correctly for a frame or two, and then `` and `

` get removed from the DOM. The `` element, and the `` element and `` are still there, however:

The link I'm clicking in the video above has a `data-turbo-action="advance"` attribute, and there's a `` surrounding that area with the list of threads.

If I put `data-turbo="false"` on the link, then everything loads as expected, so it definitely seems to be Turbo-related.

If I *edit* an existing message (which uses `button_to` to load a partial via TurboStream) it works just fine:

https://github.com/user-attachments/assets/9d9bd8e6-464a-4a63-9a9b-e3f48b8ea89f

Anything else I can do to help diagnose please let me know! I'm on Rails 8.0.2.1 and Lexxy 0.1.4.beta

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with Rails 8.0.2.1, Lexxy 0.1.4.beta, a data-turbo-action="advance" link, and a turbo-frame containing the thread list. Compare the DOM after a full refresh, Turbo navigation, and TurboStream editing; done means the lexxy-toolbar and lexxy-editor__content remain present after navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, rails
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.