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

onChange and onRequestOptions props do not work together #105

Open
rishu605 opened this issue Sep 13, 2023 · 1 comment
Open

onChange and onRequestOptions props do not work together #105

rishu605 opened this issue Sep 13, 2023 · 1 comment

Comments

@rishu605
Copy link

I'm using the component with both onRequestOptions and onChange props. Both of these props work as intended when I pass only one of them. But when I use onChange and onRequestOptions props together, onChange fires but onRequestOptions does NOT fire up.

Not sure what is causing this to happen since it works perfectly when only one of these props is passed.

My use case is that whenever the user enters a "$" sign, I call handleRuleExpressionChange function to do something.
And otherwise onRequestOptions should trigger whenever the user enters something that is passed into the trigger prop array

Code below:
<TextInput onRequestOptions={() => { console.log("Inside onRequestOptions: ") }} onChange={handleRuleExpressionChange} value={ruleExpression} style={{width: "100%" }} trigger={trig} options={myObj} />

@yury-dymov
Copy link
Owner

Hi, I am not actively maintaining the library but I am reviewing and merging PRs from time to time.

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