Vue-multiselect: custom click action in noResult-slot not working

Created on 24 Apr 2017  路  7Comments  路  Source: shentao/vue-multiselect

I want to have a custom button with a custom click event in the noResult slot but all the click events in this slot are not beeing fired.

Fiddle for reproduction: https://jsfiddle.net/7csp2vtp/

Is there already a solution for this problem?

Any help would be great.

bug

Most helpful comment

It might be related to the onmousedown event. Hopefully I will look into it during the weekend.

All 7 comments

It might be related to the onmousedown event. Hopefully I will look into it during the weekend.

+1 having same issue
Trying to trigger a link from inside span

Just for others to know, this issue seems to be solved as of the last commit.

The demo site exemple ( https://monterail.github.io/vue-multiselect/ ) is not up to date, and neither is NPM but it will as soon as @shentao updates it.

If you cannot wait, build it from the 2.0 branch (git clone, npm update, then npm run bundle) will generate the dist file that you can use. Not the best practice as it will be erased after a npm update, but it works.

Is NPM update done? I'm facing the same issue in 2.0.2 build

this is not resolved. The click event remains in the text and not in the general element

I found a solution on this version: add click event on slot "noResult" and add styles with CSS to cover the entire element.

Example:

Agregar

.add
margin: -0.6rem -1rem
padding: 0.6rem 1rem
width: calc(100% + 2rem)
display: block

This issue is no longer present.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yaakovp picture yaakovp  路  3Comments

wujekbogdan picture wujekbogdan  路  4Comments

alexhyriavets picture alexhyriavets  路  3Comments

MaxHalford picture MaxHalford  路  4Comments

zachleigh picture zachleigh  路  3Comments