sindresorhus/refined-github

Empty comment field displays unnecessary "please fill out this field" tooltip when hovered over in Firefox #2349

Luke18033 posted onGitHub

As stated in the title, this tooltip appears when mousing over the comment field while it is empty. I know how issue comments work, I don't need this appearing and obscuring my text every time I go to write a comment. This is something which happens in normal GitHub, so I was hoping Refined GitHub would be able to fix it. I guess that makes this a feature request?

This only happens in Firefox as far as I can tell, which is possibly why it seems to have gone unnoticed. It's definitely a part of the site itself though, and not the browser: this message will appear in Chrome, but only when hovering over the issue title field, and not the comment field. In that case it's not really a problem though, since that's the default focused text box and the tooltip appears low enough that it doesn't cover the text anyway.

Here's a screenshot of the tooltip in question. image


The tip comes from required attribute of <textarea>, removing it when the comment field is empty will break GitHub's form validation and cause the comment button to be disabled.

...this message will appear in Chrome, but only when hovering over the issue title field, and not the comment field...

That's because the issue title field is a <input> with required attribute as well, but I have no idea why Chrome doesn't show the tip for <textarea>.

posted by kidonng over 5 years ago

Would adding a title='' attribute avoid the tooltip? If so, in both browsers, this can be added as a feature.

PR welcome

posted by fregante over 5 years ago

@fregante Yes, works on both browsers

posted by kidonng over 5 years ago

Not sure if I should open a new issue for this, but this now happens again in issue forms.

posted by Luke18033 over 3 years ago

Fund this Issue

$0.00
Funded

Pull requests