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

Commit

Permalink
Fix Token Reg Dapp issues in Firefox (#4489)
Browse files Browse the repository at this point in the history
* Fix overflow issues in Firefox (#4348)

* Fix wrong Promise inferance

* Add new Componennt for Token Images (#4496)

* Revert "Add new Componennt for Token Images (#4496)"

This reverts commit 6ffbdab.
  • Loading branch information
ngotchac authored and arkpar committed Mar 3, 2017
1 parent e774716 commit 8c373d2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions js/src/dapps/tokenreg/Inputs/Text/input-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,22 +105,22 @@ export default class InputText extends Component {

const validation = validate(value, validationType, contract);

if (validation instanceof Promise) {
const loadingTimeout = setTimeout(() => {
this.setState({ disabled: true, loading: true });
}, 50);

return validation
.then(validation => {
this.setValidation({
...validation,
disabled: false,
loading: false
});
return Promise.resolve(validation)
.then((validation) => {
clearTimeout(loadingTimeout);

event.target.focus();
this.setValidation({
...validation,
disabled: false,
loading: false
});
}

this.setValidation(validation);
event.target.focus();
});
}

onKeyDown = (event) => {
Expand Down
2 changes: 1 addition & 1 deletion js/src/dapps/tokenreg/Tokens/Token/token.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
}

.token-container {
flex: 1;
flex: 1 1 auto;
}

.full-width .token-container {
Expand Down

0 comments on commit 8c373d2

Please sign in to comment.