Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

RNW Elements being affected by pointerEvents #36

Open
semiautomatix opened this issue May 9, 2017 · 0 comments
Open

RNW Elements being affected by pointerEvents #36

semiautomatix opened this issue May 9, 2017 · 0 comments

Comments

@semiautomatix
Copy link

I have a peculiar problem resulting from using Ignite 2.0 and react-native-windows whereby the TextInputs are positioning the cursor at the beginning of a field when the field is populated using the value property. See below.

image


Install Ignite 2.0 as per instructions
npm install --save-dev rnpm-plugin-windows
react-native windows
react-native run-windows

It's also preventing ScrollView from scrolling - so could be a bigger problem than just a textinput,

I believed I've narrowed down the issue to the pointerEvents property. The react-native-drawer component contains this property in View (and I've also tested react-native-drawer-layout
that contains this property in Animated.View). The specific piece of code is:

<View
          pointerEvents={ this._open && this.shouldCaptureGestures() ? 'auto' : 'none' }
/>

and

const pointerEvents = drawerShown ? 'auto' : 'none';

<Animated.View
            pointerEvents={pointerEvents}
/>

I'm unsure whether this is something that should be changed in this package, or RNW needs an update?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant