-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
@@ -75,6 +93,13 @@ class InputAddress extends Component { | |||
</div> | |||
); | |||
} | |||
|
|||
handleInputChange = (event, value) => { | |||
let isEmpty = (value.length === 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const? ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, still some sticking old habits...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:D It happens.
} | ||
|
||
onFocus = () => { | ||
this.props.onChange(null, ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Throw-away comment, i.e. not for the PR. Think we probably need to re-work the event handlers in a future generation to always only return the value everywhere. Currently it is a bit of a mix, some are value, some are event & value, some are event, index & value. (And event is never handled in the React components, always only in the inputs).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, agreed. event
should be only within Inputs wrappers
{ this.renderSelectEntries() } | ||
</Select> | ||
<div> | ||
<AutoComplete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we (for the sake of consistency in the input components), add the AutoComplete to where we have the other input components, i.e. a thin wrapper. It feels like the odd man out atm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes that's right. That's what I initially planned, but forgot... Will do!
Small comments, minor issues. Fix and we can push it in. |
Fixes #2141
Implements address selection in transaction modal with an autocomplete, so they can be searched through...
See it in action : https://youtu.be/C-xgoemIs7c