Skip to content

Commit

Permalink
Reset pointerEvents on null value
Browse files Browse the repository at this point in the history
Summary: This was ignored before.

Reviewed By: javache

Differential Revision: D4495022

fbshipit-source-id: 9003fa109ef0274b2d1d023d9839a7027cbf522a
  • Loading branch information
astreet authored and nicktate committed Feb 9, 2017
1 parent f88e662 commit 47b823a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ public void setHitSlop(final ReactViewGroup view, @Nullable ReadableMap hitSlop)

@ReactProp(name = ViewProps.POINTER_EVENTS)
public void setPointerEvents(ReactViewGroup view, @Nullable String pointerEventsStr) {
if (pointerEventsStr != null) {
if (pointerEventsStr == null) {
view.setPointerEvents(PointerEvents.AUTO);
} else {
PointerEvents pointerEvents =
PointerEvents.valueOf(pointerEventsStr.toUpperCase(Locale.US).replace("-", "_"));
view.setPointerEvents(pointerEvents);
Expand Down

0 comments on commit 47b823a

Please sign in to comment.