Skip to content

[Bug] FullUserInChatbox: nested slate editor cause events in slate to be handled by the outer editor #4337

Description

@sadan4

What happens when the bug or crash occurs?

in full user in chatbox when a profile popout is opened, a nested slate editor is created.

Image

this causes issues as discord uses capture phase events for major events (focus, blur, paste)

Image

I have no idea how to fix this as the events are handled well before anywhere full user in chatbox patches anything

What is the expected behaviour?

events are handled by the inner editor

How do you recreate this bug or crash?

trigger a "capture phase" event

Errors

N/A

Request Agreement

  • I've searched existing issues and this hasn't been reported before
  • I am using Discord Stable or tried on Stable and this bug happens there as well
  • I installed Vencord via an official method (download from vencord.dev or from source), not via something like AUR or Nix packages
  • This is not a support request
  • I am willing to submit a fix for this myself

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions