Skip to content

Autocompleting the location lookup on channel edit chooses the location with the last typed letter

Summary

When a user enters their location, we look up their location. But, browsers that autofill forms will allow them to click and fill their saved location and our lookup populated with the last typed letter

https://www.evernote.com/l/AGsPLk6mZJhOnpen4F_77CIiaj1Kld72IEwB/image.png

Steps to reproduce

With a browser that autocompletes location, type in the first two letters of your town

In my example, I

Platform information

(Browser, device, system stats, screen size)

What is the current bug behavior?

(What actually happens)

What is the expected correct behavior?

(What you should see instead)

Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)