Open gsofter opened 2 years ago
@gsofter please make sure to set padding-right: 0 in styles of your input. It seems that the browser sets some padding for an input on iOS. Suprisingly, it happens only on physical mobile device and cannot be reproduced using safari devtools on macOS. Example code using styled-components:
const StyledInput = styled(ReactCodeInput)`
> input {
padding-right: 0;
}
`;
...or
<ReactCodeInput inputStyle={{paddingRight: 0}} />
When we input the numbers on iPhone(Safari), the numbers are not being displayed fully but it is being cut down.
Screenshot