nuclide-commons-ui
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -155,3 +155,4 @@ 'use strict'; | ||
onFocus: this.props.onFocus, | ||
onBlur: this.props.onBlur | ||
onBlur: this.props.onBlur, | ||
style: this.props.style | ||
}) | ||
@@ -216,3 +217,4 @@ ); | ||
onBlur: () => {}, | ||
unstyled: false | ||
unstyled: false, | ||
style: null | ||
}; |
{ | ||
"name": "nuclide-commons-ui", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "Common Nuclide UI components.", | ||
@@ -16,4 +16,4 @@ "license": "BSD-3-Clause", | ||
"classnames": "2.2.5", | ||
"nuclide-commons": "0.1.9", | ||
"nuclide-commons-atom": "0.1.9", | ||
"nuclide-commons": "0.1.10", | ||
"nuclide-commons-atom": "0.1.10", | ||
"react": "15.3.1", | ||
@@ -20,0 +20,0 @@ "react-dom": "15.3.1", |
@@ -178,3 +178,3 @@ 'use strict'; | ||
_handleRowClick(selectedIndex, event) { | ||
const { onSelect, rows } = this.props; | ||
const { onSelect, onWillSelect, rows } = this.props; | ||
if (onSelect == null) { | ||
@@ -184,2 +184,7 @@ return; | ||
const selectedItem = rows[selectedIndex]; | ||
if (onWillSelect != null) { | ||
if (onWillSelect(selectedItem, selectedIndex, event) === false) { | ||
return; | ||
} | ||
} | ||
onSelect(selectedItem.data, selectedIndex); | ||
@@ -186,0 +191,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
205451
3045
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addednuclide-commons@0.1.10(transitive)
+ Addednuclide-commons-atom@0.1.10(transitive)
- Removednuclide-commons@0.1.9(transitive)
- Removednuclide-commons-atom@0.1.9(transitive)
Updatednuclide-commons@0.1.10
Updatednuclide-commons-atom@0.1.10