Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typingTime issue #74

Open
voulgarakis opened this issue Nov 9, 2022 · 1 comment
Open

typingTime issue #74

voulgarakis opened this issue Nov 9, 2022 · 1 comment

Comments

@voulgarakis
Copy link

Hi all,

I try use typingTime prop, in order to add some delay before the onChange event occurs. But changing the typingTime does not change anything. Does anyone has the same problem?

<InputSpinner
style={{marginTop: 10}}
max={100}
min={0}
step={1}
value={chLowerBound}
fontSize={14}
showBorder={true}
rounded={false}
typingTime={4000}
inputStyle={{
fontFamily: 'SFProDisplay-Semibold',
}}
color={paperTheme.colors.primary}
width={140}
height={45}
onChange={num => {
if (num !== 0 && (num < 45 || num > 85)) {
console.log('val error 1:', num);
setChLowerBound(num);
} else if (num !== 0 && num >= chUpperBound) {
console.log('val error 2:', num);
} else if (num !== 0) {
// send data to API
}
}}
/>

@savitrasapre
Copy link

savitrasapre commented Aug 8, 2023

Agreed. I'm having trouble adding a decimal after an integer. Even if I enter 10. it changes it to 10

Even if I log the onChange event, the "." does not get caught and is parsed before it is sent to onChange. Did you figure out a way to get around it?

typingTime does nothing even after I increase the time (in ms)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants