maas.io icon indicating copy to clipboard operation
maas.io copied to clipboard

Clearing search field annoyingly defocuses it

Open matthewpaulthomas opened this issue 4 years ago • 0 comments

  1. Open the MAAS Documentation page and focus the search field.
  2. Type some text.
  3. Click the clear button.
  4. Start typing some different text.

What should happen: The text you type appears in the search field.

What actually happens: The text is lost, because the search field is no longer focused.

According to vanilla-framework#2866 this won’t be fixed in Vanilla, so it needs to be fixed for each search field individually. It may be possible to copy the code used to fix it in the vanillaframework.io/docs search field.

matthewpaulthomas avatar Mar 16 '20 08:03 matthewpaulthomas