Skip to content

Replace "on menu opening/toggle" listeners with observe #6560

Closed as not planned

Description

@fregante

Most likely none of these actually need to use the toggle event and we can just observe the exact element we need

https://github.com/search?q=repo%3Arefined-github%2Frefined-github%20%27toggle%27&type=code

There are probably more listeners that use click to do the same thing, we might need to look at every delegate use

Part of:

Activity

  1. added
    meta
    small
    on Apr 25, 2023
  2. fregante commented on Jun 1, 2023

    @fregante
    MemberAuthor

    Eh, the idea is there, but rewriting isn't necessary.

    In some cases, we do want to listen to the toggle event, because observe only acts once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedmetasmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions