Draggable Qchip
-
I’m trying to make Qchip draggable:
<q-chip draggable="true" @dragstart="writeConsole()">text</q-chip>
On drag start nothing happens, writeConsole method is not triggered. To make it work I had to add div wrapper and assign event listener to it instead of q-chip.
Is it normal behavior for q-chip? Can it be draggable? -
@VadimNad where did you find a draggable prop and event? I dont seem to find that in the docs.
-
@metalsadman it’s a html attribute , should be applicable to q-chip as it’s represented by div. You are right there is no dragstart event in the docs, but @dragstart works with just a simple div, so I guess it should work with q-chip as well.
-
Ok, it seems it’s enough to add .native directive to event listener.
<q-chip draggable="true" @dragstart.native="writeConsole()">text</q-chip>