Changes to button-question component

This commit is contained in:
Leah Schumann 2023-02-01 10:57:29 -05:00
parent d62e666618
commit aa2f50199e

View file

@ -53,7 +53,7 @@ https://safelite.atlassian.net/wiki/spaces/DC/pages/76644418/Button+Question+Com
:lastValuePushedToGa="lastValuePushedToGa" :lastValuePushedToGa="lastValuePushedToGa"
:setLastValuePushedToGa="setLastValuePushedToGa" :setLastValuePushedToGa="setLastValuePushedToGa"
:suppressError="suppressError" :suppressError="suppressError"
@nestedComponentEvent="handleNestedComponentEvent" @buttonEvent="handleButtonEvent"
v-model="selectedValues" /> v-model="selectedValues" />
<!-- For nested questions --> <!-- For nested questions -->
<transition name="fade" mode="out-in"> <transition name="fade" mode="out-in">
@ -215,9 +215,9 @@ export default {
setLastValuePushedToGa(lastValuePushedToGa) { setLastValuePushedToGa(lastValuePushedToGa) {
this.lastValuePushedToGa = lastValuePushedToGa; this.lastValuePushedToGa = lastValuePushedToGa;
}, },
handleNestedComponentEvent(event) { handleButtonEvent(event) {
const eventName = event.eventName; const eventName = event.eventName;
this.$emit(`${eventName}`, event.args); this.$emit(`buttonEvent-${eventName}`, event.args);
}, },
}, },
components: { components: {