Prevent Lib from manipulating the DOM (Vue.js)
See original GitHub issueIs there a way to prevent the lib from manipulating the DOM?
I use it in a VueJS component and adjust my data array in the sortablejs onSort
function. My list will be rendered based on my data array so it’s a little but dump to do with with this lib too.
And I have some problems with the manipulated DOM by this lib. See more here: https://github.com/yyx990803/vue/issues/1272
Issue Analytics
- State:
- Created 8 years ago
- Reactions:3
- Comments:8
Top Results From Across the Web
Vue.js dynamic changes to DOM by external library (jQuery ...
Vue does have some limited ability to manipulate the dom directly through ref attribute, but it's reccomended to avoid it when possible. The...
Read more >Vue Tip: Avoid Directly DOM Manipulation - Michael Hoffmann
It is a no-go to manipulate the DOM in Vue.js directly. Instead, you should use the "ref" attribute.
Read more >How to Target the DOM in Vue - Telerik
In jQuery , you would select an element by targeting it with the $() function, and that would open up a wide variety...
Read more >Tips for Vue Developers: Avoid directly manipulating the DOM
I was working with a student today on a final capstone project and they were having some issues with data binding.
Read more >Event Handling - Vue.js
We can use the v-on directive, which we typically shorten to the @ symbol, to listen to DOM events and run some JavaScript...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can use Sortable with vuejs. Remove the dragged element and rebuild your data array:
I just need the drag and drop feature and the info which items was changed. VueJS will do the DOM manipulation then.