laravel-enso / select

Bulma styled single and multi-select component with a server-side option list builder
https://laravel-enso.com/examples/select
MIT License
26 stars 15 forks source link

Removing a tag doesn't emit an 'input' event #21

Closed stevefrost closed 6 years ago

stevefrost commented 6 years ago

This is a bug?.

Prerequisites

Description

When you choose an option on the dropdown it emits an input event, when you click clear it emits an input event, but when you remove a tag it doesn't emit an input event.

Steps to Reproduce

Remove a tag from the dropdown

Expected behavior

an input event should be emitted

Actual behavior

no event is emitted

aocneanu commented 6 years ago

sortable image

aocneanu commented 6 years ago

https://github.com/laravel-enso/Select/blob/master/src/resources/assets/js/components/enso/select/Tag.vue#L7

stevefrost commented 6 years ago

The remove event doesn't bubble up to the vue-select-filter component though, the input does.

aocneanu commented 6 years ago

Yeah, the input needs to bubble up for the v-model to work. But I got the point :)