I am trying to use click.tigger() to change the mode of the template to editable. Problem is I have a image gallery inside this template that I don't want click.trigger to fire on.
app.js:
<div click.trigger="enableEdit()">
<response containerless></response>
</div>
response.html:
<template>
<div>
...
<gallery></gallery> <-- I want this to still be able to fire
<button click.trigger="save()">save</button> <-- I want this to work as well but they wont with "enableEdit()" above attached.
</div>
</template>
Gallery.js:
attached() {
const carousel = new Flickity(this.gallery, {
cellAlign: 'left',
contain: true,
lazyLoad: true,
});
}
Once I click the trigger it does work and enable edit. The gallery is using a Plugin called Flickity. Above I show how I instantiated it.