BB-854: fix(editor): Enter key submission for Author Credit and right click context menu in entity search fields#1240
Open
atharvsp02 wants to merge 1 commit intometabrainz:masterfrom
Open
BB-854: fix(editor): Enter key submission for Author Credit and right click context menu in entity search fields#1240atharvsp02 wants to merge 1 commit intometabrainz:masterfrom
atharvsp02 wants to merge 1 commit intometabrainz:masterfrom
Conversation
… menu for BBID paste
atharvsp02
commented
Feb 22, 2026
| const entityOption = this.entityToOption(entity); | ||
| const newValue = this.props.isMulti ? [...this.props.value, entityOption] : entityOption; | ||
| this.props.onChange(newValue); | ||
| this.selectRef.current.blur(); |
Contributor
Author
There was a problem hiding this comment.
Hi @MonkeyDo ,
After a successful BBID paste, this.selectRef.current.blur() removes focus from the field, so Enter key submission will not work at that point. Should this be handled differently?
atharvsp02
commented
Feb 22, 2026
| width: 100% !important; | ||
| opacity: 1 !important; | ||
| cursor: text !important; | ||
| } |
Contributor
Author
There was a problem hiding this comment.
@MonkeyDo , I also wanted to ask after this fix the Author Credit field no longer stretches when very long text is typed, it scrolls inside the field instead. Should the original behaviour be preserved?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Ticket: BB-854
In the Author Credit field pressing Enter after selecting an author did not submit the form and Right clicking inside the field did not show the browsers context menu, making it impossible to paste a BBID with a mouse
Solution
blurInputOnSelectprop fromEntitySearchFieldOptionbecause it removed focus from the field after selecting an author, preventing Enter from submitting the form. Theblur()for the BBID paste workflow is unchanged.text-field-menuCSS class and flexbox so the<input>element expands to fill the empty area of the field, enabling the browsers right click context menu.Areas of Impact
EntitySearchFieldOption.js- removedblurInputOnSelect, addedtext-field-menuclassstyle.scss- added scoped CSS under.text-field-menuScreenshots
Before
After