react-currency-input
react-currency-input copied to clipboard
1.3.2 infinite loop of "handleFocus" on mobile safari, crashes browser
Hey, sorry I don't have more details but had to rollback to from 1.3.2 to 1.2.6 this morning (last known working version). 1.3.2 was causing an infinite loop somewhere in the "handleFocus" function, but only on iphones. It might have been when unfocusing (blurring) the input but I didn't check exactly.
If you could provide a repo that reproduces this issue that would help me debug it
I'm having a similar problem. When I start to type in an input then the cursor jumps into the currency input.
@norbajunior what version are you using?
@aesopwolf the last one, 1.3.4.
@norbajunior do you have any sample code you can provide to help reproduce this?
@aesopwolf Sorry for the delay. I have this one https://github.com/norbajunior/currency-input/blob/master/src/App.js
Just an input text and the currency input.
Hope you can help. Thank you
+1
I had this issue occur on Safari 10.1.2 desktop on Yosemite 10.10.5.
I would get an infinite loop that would crash the browser when using the latest version. Downgrading to 1.2.6 as suggested in the original post fixed the issue.
Downgrading to 1.2.6 solved for me too
Internet Explorer 11 wouldn't let you click to another input field.
Downgrading to 1.2.6 solved that as well. So looks like a serious focus issue exists.
Heads up, 1.2.6 uses Number.parseFloat
so it will not work on IE.
@norbajunior @l3iodeez did you ever move to another lib or is everything working alright at 1.2.6?
This is also mentioned here: https://github.com/jsillitoe/react-currency-input/issues/50
downgrading to 1.2.6 and still seeing an issue in safari unfortunately
EDIT: was not using a strict reference to npm version [insert head slap emojji]