phoenixframework / phoenix_live_view

Rich, real-time user experiences with server-rendered HTML
https://hex.pm/packages/phoenix_live_view
MIT License
6.14k stars 919 forks source link

Unexpected Focus Shift Bug in Phoenix Code When Interacting with Editable Elements #3311

Closed Roadhammer-Gaming closed 3 months ago

Roadhammer-Gaming commented 3 months ago

*Phoenix version: Release 3.7 build 3.7.3-20322 build timestamp: 2024-05-25T13:23:21.725Z

I’ve encountered a bug in Phoenix Code related to the live server’s element click-to-navigate feature. When I click on an element within the live server preview, the editor automatically shifts focus to the corresponding HTML element in the code. This feature also switches the currently open file in the editor if the clicked element is associated with a different file. While this functionality is intended to aid in code navigation, it’s causing an unexpected focus shift that results in unwanted edits to the HTML file. The focus should remain on the live server’s editable fields until I explicitly click back into the editor. This issue disrupts the workflow, especially when I need to maintain my position in a specific part of the code. It appears to be a bug within the feature that handles element-to-code navigation in Phoenix Code. phoenixbug

SteffenDE commented 3 months ago

Hi, you’ve reported this issue to the wrong project. The project you are looking for is probably https://github.com/phcode-dev/phoenix

Thanks!

Roadhammer-Gaming commented 3 months ago

Sorry, I followed a link provided by Copilot AI to report the software bug in Phoenix code, I should not have automatically assumed I was given the correct link.

On Wed, Jun 19, 2024, 4:53 PM Steffen Deusch @.***> wrote:

Hi, you’ve reported this issue to the wrong project. The project you are looking for is probably https://github.com/phcode-dev/phoenix

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/phoenixframework/phoenix_live_view/issues/3311#issuecomment-2179443260, or unsubscribe https://github.com/notifications/unsubscribe-auth/BGF6DF7YWASP7H4FAA55HILZIHVS7AVCNFSM6AAAAABJSVUTMCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZZGQ2DGMRWGA . You are receiving this because you authored the thread.Message ID: @.***>