Account selector close operations (#4728)

* Close when clicking anywhere on body pane

* Allow click to propagate on address click

* Rename noCopy -> allowAddressClick

* Handle i18n strings in input

* Close on pasted addresses (valid entry)

* allowAddressClick default

* Don't do onClick on AccountCard if text is selected

* Reset filter value on close for address selection

* Better close on click for AccountSelection
This commit is contained in:
Jaco Greeff
2017-03-03 14:38:40 +01:00
committed by GitHub
parent 5559374676
commit 6760ae0e84
4 changed files with 56 additions and 9 deletions

View File

@@ -17,6 +17,8 @@
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { nodeOrStringProptype } from '~/util/proptypes';
import AddressSelect from '../AddressSelect';
class InputAddressSelect extends Component {
@@ -27,9 +29,9 @@ class InputAddressSelect extends Component {
allowCopy: PropTypes.bool,
className: PropTypes.string,
error: PropTypes.string,
hint: PropTypes.string,
label: PropTypes.string,
error: nodeOrStringProptype(),
hint: nodeOrStringProptype(),
label: nodeOrStringProptype(),
onChange: PropTypes.func,
readOnly: PropTypes.bool,
value: PropTypes.string