Skip to content

fix(widget): Prevent location being selected on blur - #839

Open
eybbus wants to merge 1 commit into
mainfrom
eybbus/fix-widget-onblur-behaviour
Open

eybbus wants to merge 1 commit into
mainfrom
eybbus/fix-widget-onblur-behaviour

Conversation

@eybbus

@eybbus eybbus commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

ref

https://mittatb.slack.com/archives/C066WE4UGRW/p1793194308432139?thread_ts=1792741752.694749&cid=C066WE4UGRW

Seems to be an issue on windows still with something to do with blur and selection or something? Look at the last few seconds here, when bluring input the "Min posisjon" is automatically selected and changes the input.

Description

This prevents couple of things but mainly one.

"Mainly"

  • Prevents "My location" from being selected on Blur

"Couple of things"

  • Prevents refocus showing "my position" instead of search results
  • Prevents auto selecting onfocus and onblue action when no change has been made to the input.
    • isDirty
  • Prevents the list from reopening after you have left the field
  • Should also prevent location to be added twice which I experienced once.

Found a couple of other issues with the widget but will be a different pr.

@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
planner-web Ready Ready Preview Oct 28, 2026 3:30pm UTC

Request Review

@github-actions

Copy link
Copy Markdown

Widget size

Size (gzip) Limit Change
✅ Widget JS 12.38 kB 13.00 kB +0.06 kB (+0.5%)
✅ Widget CSS 9.54 kB 13.00 kB No change

@eybbus

eybbus commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

Just look at the widget.ts everything else is just a new build of the widget

@reidzeibel reidzeibel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok! 🤞🏼

This branch was successfully deployed

1 active deployment
Preview — 7b0295d4 Deployed Oct 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants