react-native-searchable-dropdown
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -0,0 +0,0 @@ [npm-badge]: https://img.shields.io/npm/v/react-native-searchable-dropdown.svg?colorB=ff6d00 |
17
index.js
@@ -22,3 +22,2 @@ import React, { Component } from 'react'; | ||
this.renderItems = this.renderItems.bind(this); | ||
this.state = { | ||
@@ -176,4 +175,4 @@ item: {}, | ||
val: () => { | ||
this.props.onBlur && this.props.onBlur() | ||
this.setState({ focus: false }) | ||
this.props.onBlur && this.props.onBlur(this); | ||
this.setState({ focus: false, item: this.props.selectedItems }); | ||
} | ||
@@ -213,3 +212,13 @@ }, | ||
<TextInput | ||
{ ...textInputProps } | ||
{ ...textInputProps } | ||
onBlur={(e) => { | ||
if (this.props.onBlur) { | ||
this.props.onBlur(e); | ||
} | ||
if (this.props.textInputProps && this.props.textInputProps.onBlur) { | ||
this.props.textInputProps.onBlur(e); | ||
} | ||
this.setState({ focus: false, item: this.props.selectedItems }); | ||
} | ||
} | ||
/> | ||
@@ -216,0 +225,0 @@ ) |
{ | ||
"name": "react-native-searchable-dropdown", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Searchable Dropdown", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ [example-url]: https://i.imgur.com/mHGaOX5.gif |
17790
255