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

RNW Elements being affected by pointerEvents #36

@semiautomatix

Description

@semiautomatix

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions