`one-click-pr-or-gist`: In PR compare pages the "Create pull request" button is always enabled, even with empty title
See original GitHub issuePlease ensure:
- The bug is caused by Refined GitHub. It doesn’t happen if I disable the extension.
Describe the problem and how to replicate it
Continuing https://github.com/sindresorhus/refined-github/pull/4556#issuecomment-879092209
In PR branch compare pages, e.g. https://github.com/darkred/test/compare/main...t2?expand=1
, the “Create pull request” button is always enabled, even with empty title - (the expected behavior is to be disabled when the title is empty).
Disabling the one-click-pr-or-gist
feature fixes the problem.
See:
- the attached screen capture for the issue, and
- the screenshot for how it is (as expected) with the
one-click-pr-or-gist
feature disabled.
Screenshots/video/gif showing the issue, if it’s visual
Console errors, if any
No response
Example URL
https://github.com/darkred/test/compare/main...t2?expand=1
Browser(s) used
Chrome 91, Firefox 90
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Create Pull Request Button is disabled - github - Stack Overflow
In my case, the pull request Title field didn't auto-populate like it usually does. Once I typed in a title, the button became...
Read more >Create Pull Request button showing when there is an existing ...
After testing this issue, I do not believe the application is behaving out of the ordinary. There is always a slight lag in...
Read more >Create Pull Request button on Pull Request page st...
I have new changes in my pull request, but the button is disabled. I suppose I'll try restarting. :) Any suggestions would be...
Read more >More ways to keep your pull request branch up-to-date
To update by rebasing, click the drop down menu next to the Update Branch button, click Update with rebase, and then click Rebase...
Read more >How to submit a pull request | Zell Liew
This video explains what a pull request is, and how to submit one. ... click on the Create pull request button at the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the research! The hook should be
button[data-disable-invalid]
, our button does not have that: https://github.com/sindresorhus/refined-github/blob/ae247fb90a4c4b20524d76c823e97af3881326fb/source/features/one-click-pr-or-gist.tsx#L31In this case, it should be as easy as adding the attribute
or maybe