@expandorg/components
Advanced tools
Comparing version 0.2.69 to 0.2.70
{ | ||
"name": "@expandorg/components", | ||
"version": "0.2.69", | ||
"version": "0.2.70", | ||
"description": "expand UI components library", | ||
@@ -35,3 +35,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "7acda91bb9dfad9c96a362edeb0d0122e0319b3c" | ||
"gitHead": "4c4125d47f37370744e473b7c57dbc2d916b4d32" | ||
} |
@@ -26,2 +26,3 @@ import React, { Component, createRef } from 'react'; | ||
onSelect: PropTypes.func, | ||
onKeyDown: PropTypes.func, | ||
filterFn: PropTypes.func, | ||
@@ -38,2 +39,3 @@ }; | ||
onSelect: Function.prototype, | ||
onKeyDown: null, | ||
}; | ||
@@ -90,3 +92,6 @@ | ||
handleKeyDown = evt => { | ||
const { allowAdd } = this.props; | ||
const { allowAdd, onKeyDown } = this.props; | ||
if (onKeyDown) { | ||
onKeyDown(evt); | ||
} | ||
switch (evt.keyCode) { | ||
@@ -93,0 +98,0 @@ case KeyCodes.ESC: |
180891
3511