Answer the question
In order to leave comments, you need to log in
Vue.js make element invisible like selector?
The dredge script works, everything works fine on jquery. Engaged in integration on Vue.js, now the element cannot be selected.
Here:
<li class="drag-item" v-for="module in modules">
все что в цикле Vue.js я не могу инициализировать, этот li НЕ drugable()
</li>
<li class="drag-item">
а если инициализировать вот так просто, без цикла, все работает отлично
</li>
<script>
// draggable fucntion, we can use wverywhere
$.fn.draggable = function () {
// код функции
}
</script>
init(){
//dragalbe item initializing
$('.drag-item').draggable();
$('.editable').each(function () {
$(this).editable();
});
$('.summernote').summernote();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question