Commit d3c79176 authored by yann300's avatar yann300

fix contextMenu (renaming)

parent 6f8c6d2b
......@@ -45,7 +45,7 @@ module.exports = (event, items) => {
event.preventDefault()
function hide (event, force) {
if (force || (event.target !== container)) {
if (container && container.parentElement && (force || (event.target !== container))) {
container.parentElement.removeChild(container)
}
window.removeEventListener('click', hide)
......
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