[realbox] Always update realbox input when a default match is present
Previously, the text selection in the realbox input was being set to the inline autocompletion of the default match (if one existed) assuming the current input contains the previously typed text, thus generating the expected input. This logic can result in undesirable outcomes where the current input does not match the previously typed text. As of this CL no such assumption is made and the input is updated to the previously typed input + inline autocompletion of the default match (if applicable). Fixed: 1152269 Change-Id: I518b2095736c8ef328c820bce2e9682f1b469aad Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2566296Reviewed-by:Tommy Li <tommycli@chromium.org> Commit-Queue: Moe Ahmadi <mahmadi@chromium.org> Cr-Commit-Position: refs/heads/master@{#832206}
Showing
Please register or sign in to comment