You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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} />
The text was updated successfully, but these errors were encountered: