function validate (binding) {
  if (typeof binding.value !== 'function') {
    console.warn('[Vue-click-outside:] provided expression', binding.expression, 'is not a function.')
    return false
  }

  return true
}
This clickoutside directive has been adpated form vue-bulma's clickoutside directive
@see https://github.com/vue-bulma/click-outside