Skip to content

sync-pr-commit-title - "Cancel" requires two clicks #7096

Closed

Description

@fregante

Description

I don’t think this is caused by us, but probably there's an event listener that cancels propagation so our delegate() never receives the event:

Screen.Recording.mov

It seems to be related with the focus of the field, because if I blur it first, it works with one click. This is also true when blurring via tab

Screen.Recording.1.mov

How to replicate the issue + URL

refined-github/sandbox#12

Extension version

23.11.3, 23.11.15

Browser(s) used

Chrome, Safari

Activity

  1. added
    small
    on Nov 23, 2023
  2. fregante commented on Nov 23, 2023

    @fregante
    MemberAuthor

    I tried capture: true here but that was not enough.

    // On "Cancel", disable the feature
    delegate('.rgh-sync-pr-commit-title', 'click', disableSubmission, {signal});

  3. removed
    small
    on Jun 4, 2024
  4. fregante commented on Dec 8, 2024

    @fregante
    MemberAuthor

    Closing in favor of this other issue since the feature needs to be rewritten for the new view. The bug probably/hopefully no longer applies there.

  5. SunsetTechuila commented on Jan 25, 2026

    @SunsetTechuila
  6. SunsetTechuila commented on Jan 25, 2026

    @SunsetTechuila
    Contributor
    1. Mousedown is fired
    2. Input field loses focus
    3. Input change event is fired
    4. updateUI is called by onCommitTitleUpdate
    5. Initial node returned by getUI is re-appended
    6. Mouseup event is fired on that re-appended node

    https://github.com/refined-github/refined-github/blob/d63e2d97fc4d85f986a120fb49cd8e09f6785b93/source/features/sync-pr-commit-title.tsx

  7. SunsetTechuila commented on Jan 25, 2026

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions