Commit f3ec8b64 authored by yann300's avatar yann300

fix dropdown panel

parent 9001e731
......@@ -82,13 +82,17 @@ DropdownPanel.prototype.toggle = function () {
}
DropdownPanel.prototype.hide = function () {
var el = this.view.querySelector('.dropdownpanel')
el.style.display = 'none'
if (this.view) {
var el = this.view.querySelector('.dropdownpanel')
el.style.display = 'none'
}
}
DropdownPanel.prototype.show = function () {
var el = this.view.querySelector('.dropdownpanel')
el.style.display = ''
if (this.view) {
var el = this.view.querySelector('.dropdownpanel')
el.style.display = ''
}
}
module.exports = DropdownPanel
......@@ -40,7 +40,9 @@ TxBrowser.prototype.setDefaultValues = function () {
this.basicPanel.update()
this.basicPanel.hide()
this.updateWeb3Url(util.web3.currentProvider.host)
yo.update(this.view, this.render())
if (this.view) {
yo.update(this.view, this.render())
}
}
TxBrowser.prototype.submit = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment