polaris icon indicating copy to clipboard operation
polaris copied to clipboard

TextField is not loosing focus

Open DarkEye123 opened this issue 2 years ago • 2 comments

Issue summary

TextField component of type number doesn't loose focus if one of the carets is clicked. Therefore, elements seem to be active even if users are adjusting different form element.

Expected behavior

TextField is loosing focus

Actual behavior

Can be reproduced even on your component library https://polaris.shopify.com/components/text-field -> select type Number. Click on increase/decrease carets and then outside of the element. Observed behavior is that focus is not lost.

For comparison check different type -e .g. email. There it behaves as expected

Tested polaris version -> v10.0.0

DarkEye123 avatar Aug 26 '22 13:08 DarkEye123

This bug was introduced in 9.12.0, so I think the best "safe" version to use until this is fixed is 9.10.0 (9.11.0 has some missing animations I believe)

bkspace avatar Aug 26 '22 22:08 bkspace

Looks related to: https://github.com/Shopify/polaris/issues/6385. I'll try taking a look!

vngauv avatar Sep 07 '22 19:09 vngauv