formio / vue

Javascript Powered forms and JSON form builder for Vue.js
MIT License
119 stars 65 forks source link

[BUG] FormBuilder is not using namespace when handling events #39

Closed nathanaelbice closed 4 years ago

nathanaelbice commented 4 years ago

Environment

Please provide as many details as you can: When emitting an event from within a form, the FormBuilder component is not properly handling the case that a custom namespace is set in the options. The emit function consults the options.namespace setting to prefix the event type, but the FormBuilder component only ever checks for "Formio".

Steps to Reproduce

  1. Emit a custom event from inside the formbuilder
  2. Note that it doesn't bubble outside of the builder

Expected behavior

The event would be re-thrown into Vue

Observed behavior

The event is swallowed.