We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3663241 commit 90e6fa6Copy full SHA for 90e6fa6
front-end/h5/src/components/core/editor/canvas/edit.js
@@ -215,15 +215,15 @@ export default {
215
))
216
}
217
{
218
- this.contextmenuPos.length &&
219
- <ContextMenu
220
- position={this.contextmenuPos}
221
- onSelect={({ item, key, selectedKeys }) => {
222
- this.elementManager({ type: key })
223
- this.hideContextMenu()
224
- }}
225
- onHideMenu={this.hideContextMenu}
226
- />
+ this.contextmenuPos.length
+ ? <ContextMenu
+ position={this.contextmenuPos}
+ onSelect={({ item, key, selectedKeys }) => {
+ this.elementManager({ type: key })
+ this.hideContextMenu()
+ }}
+ onHideMenu={this.hideContextMenu}
+ /> : null
227
228
</div>
229
)
0 commit comments