Final prompt in search bar gets cut off when changing tabs during writing

How to reproduce : write something in brave’s search bar, change tab, return to previous tab, add some text to search bar, press enter, only part of search prompt from before tab change will be passed to search engine (I use google).
Example : write “How to” in search bar, change tab, return to previous tab, add " make pie" to search prompt, press enter, only “How to” is passed to search engine.
Additional information : if it is done multiple times, tab is changed multiple times during writing search prompt, the part written after latest tab change will be missing from final search prompt.