-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Using with card-react delete on type behaviour #302
Comments
Please show your bindings (bindProps). The |
@foxhound87 im not sure how custom binding will help. The input is not a custom component. card-react just use a plain input fields. e.g.
|
What are you passing to the |
@foxhound87 in this usecase it just an empty dict. e.g. {...form.$('card_number').bind({})} |
What happens if you remove the card-react component and leave just the input? If it works then it means that the card-react component has its internal state management which is not compatible with the mobx stores of mobx-react-form package. In that case, you need to find a workaround. |
@foxhound87 well obviously it works without card-react :) basically it just traversing input and react.cloneElement them with events so this wont work with mobx form? |
I will try this component |
When using with https://www.npmjs.com/package/card-react it behave pretty strange. For example for card number starting from second quarter it start to delete number as you type. See video:
https://www.dropbox.com/s/x87zwaxwqf2ju6x/2017-07-19_02-02-10.mp4?dl=0
But if you type fast enough it doesnt delete.
Form is pretty simple
It start behave like this as soon as i add {...form.$('card_number').bind(bindProps)} to the input it start behave like this. If i remove binding - all fine.
Is there a way to make it work?
The text was updated successfully, but these errors were encountered: