Skip to content

Commit

Permalink
fix: remove 0 on canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
ly525 committed Dec 22, 2019
1 parent 3663241 commit 90e6fa6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions front-end/h5/src/components/core/editor/canvas/edit.js
Expand Up @@ -215,15 +215,15 @@ export default {
))
}
{
this.contextmenuPos.length &&
<ContextMenu
position={this.contextmenuPos}
onSelect={({ item, key, selectedKeys }) => {
this.elementManager({ type: key })
this.hideContextMenu()
}}
onHideMenu={this.hideContextMenu}
/>
this.contextmenuPos.length
? <ContextMenu
position={this.contextmenuPos}
onSelect={({ item, key, selectedKeys }) => {
this.elementManager({ type: key })
this.hideContextMenu()
}}
onHideMenu={this.hideContextMenu}
/> : null
}
</div>
)
Expand Down

0 comments on commit 90e6fa6

Please sign in to comment.