Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve ENS Address Input #6606

Merged
merged 1 commit into from
May 15, 2019
Merged

Improve ENS Address Input #6606

merged 1 commit into from
May 15, 2019

Conversation

industral
Copy link
Contributor


log.info(`ENS attempting to resolve name: ${recipient}`)
this.ens.lookup(recipient.trim())
this.ens.lookup(recipient)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use trim here to remove the white space from copy-pastes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I move it above. please see line 86

Copy link
Contributor

@tmashuang tmashuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tmashuang tmashuang merged commit cb584a6 into MetaMask:develop May 15, 2019
@bdresser
Copy link
Contributor

bdresser commented Jun 6, 2019

hey @industral @tmashuang we're reverting this in #6691 - it introduces some buggy behavior in the TO field (video below)

https://cl.ly/8fb6fb8c9555

@danfinlay
Copy link
Contributor

@bdresser Video did not attach.

@danfinlay
Copy link
Contributor

Nevermind! It did, I guess it was added in an edit.

@tmashuang
Copy link
Contributor

tmashuang commented Jun 6, 2019

As the video suggests, there's issues with changing the network while having an address or ens name. Different issues arise when going from Mainnet -> Testnet and vice-versa. I am investigating on the cause, most likely coming from the componentDidUpdate function.


h(`input.send-v2__to-autocomplete__input${qrScanner ? '.with-qr' : ''}`, {
placeholder: this.context.t('recipientAddress'),
className: inError ? `send-v2__error-border` : '',
value: to,
value: recipient,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe recipient || to instead?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tmashuang Did you happen to try this out with this branch/changeset?

@tmashuang tmashuang mentioned this pull request Jun 10, 2019
@danjm
Copy link
Contributor

danjm commented Jun 17, 2019

I believe the issue shown in the video https://cl.ly/8fb6fb8c9555, and the motivation for the revert, was an issue before this PR / before the reverted commit. There are other small bugs as Thomas mentioned. My current belief is that this PR introduced no new bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants