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

When TextInput set OnBlur event, it will prevent trigger other Onpress event #13693

Closed
Aaaaaaaty opened this issue Apr 28, 2017 · 6 comments
Closed
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@Aaaaaaaty
Copy link

image
When i foucs this input, i wanna click on other places to trigger OnPress event. But OnBlur event prevent. I must trigger twice.

<View style={ [styles.inputWrapper, {justifyContent: this.state.inputJustifyContent}]}>
              <TextInput  style={[styles.inputInner, { width:this.state.inputWidth}] }
                          placeholder="城市名称或首字母"
                          clearButtonMode="while-editing"
                          keyboardType="default"
                          caretHidden={ this.state.caretHidden }
                          onFocus={ this.inputOnFocus.bind(this) }
                          onBlur={ this.inputOnBlur.bind(this) }/>
</View>
<TouchableOpacity style={{flex: 1}} >
     <Text onPress={ this.inputCancel.bind(this) } style={styles.inputCancel}>取消</Text>
</TouchableOpacity>

How to trigger blur and press by one click? or other solution?

@topchyalexey
Copy link

topchyalexey commented Jun 6, 2017

Here is some workarounds
#12784

@kylanhurt
Copy link

I am also having issues with this. An onPress to a touchable component underneath the TextInput (think of an textComplete list of search results) instead gets interpreted as only an onBlur event for the TextInput. Would love to see a reasonable solution for this.

@pull-bot
Copy link

@facebook-github-bot no-template

1 similar comment
@pull-bot
Copy link

@facebook-github-bot no-template

@facebook-github-bot
Copy link
Contributor

Hey, thanks for reporting this issue! It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce the issue being reported. I am going to close this, but feel free to open a new issue with the additional information provided. Thanks! See "What to Expect from Maintainers" to learn more.

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Oct 10, 2017
@facebook-github-bot
Copy link
Contributor

Hey, thanks for reporting this issue! It looks like your description is missing some necessary information, or the list of reproduction steps is not complete. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce the issue being reported. I am going to close this, but feel free to open a new issue with the additional information provided. Thanks! See "What to Expect from Maintainers" to learn more.

@facebook-github-bot facebook-github-bot added Needs more information Ran Commands One of our bots successfully processed a command. labels Oct 10, 2017
@facebook facebook locked as resolved and limited conversation to collaborators Oct 10, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Oct 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants