2

I am not able to find binding.expression in Vue 3 from my custom directive's events. Has it been replaced by something else?

I need to access the raw expression to process it rather than the evaluated expression value.

Thank you.

geeko
  • 2,649
  • 4
  • 32
  • 59
  • Does this answer your question? [Migrating "detect click outside" custom directive from Vue 2 to Vue 3](https://stackoverflow.com/questions/63869859/migrating-detect-click-outside-custom-directive-from-vue-2-to-vue-3) – Michal Levý Apr 20 '21 at 09:32
  • Hi Michal. No, unfortunately I need to access the raw expression passed to the directive. Do you know how in Vue 3? – geeko Apr 20 '21 at 17:22
  • 1
    I'm, pretty sure it was removed for some reason but I was not able to find any explanation why. Just [this issue](https://github.com/vuejs/vue-next/issues/3107) talking about it should be documented... – Michal Levý Apr 20 '21 at 17:29

0 Answers0