Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Add clearing lookup #600
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunkat committed Apr 28, 2017
1 parent 4e1ea6a commit 4cdad87
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/widget/Lookup/Lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ class Lookup extends Component {
// console.log(properties);
}

handleClear = (e) => {
const {onChange, properties} = this.props;
e && e.preventDefault();

onChange(properties, null, false);

this.handleBlur(this.clearState);
}

render() {
const {
rank, readonly, defaultValue, placeholder, align, isModal, updated,
Expand Down

0 comments on commit 4cdad87

Please sign in to comment.