VUE uses vue-seamless-scroll to automatically scroll and like. Because there are two overhidden, the clicks are not synchronized with the DOM. There will be two vue-seamless-scrolls suspended up and down in the code. The like trigger at the suspended part has no response. The reason is: the suspended vue-seamless-scroll below is static and the DOM is not synchronized. Solution: Add this.$refs.seamlessScroll.reset() to indicate reset This is the end of this article about solving the data asynchrony problem at the connection point of vue-seamless-scroll and likes. For more relevant vue-seamless-scroll content, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Monitor the size change of a DOM element through iframe
>>: How many ports can a Linux server open at most?
Query the MySQL source first docker search mysql ...
Get the mongo image sudo docker pull mongo Run th...
Table of contents 1. Connect to Tencent Cloud Ser...
<br />How to remove the dividing lines of a ...
1. Vue--The first vue-cli program The development...
Effect The effect diagram is as follows Implement...
Last night, I was looking at an interview question...
Table of contents 1. JavaScript uses canvas in HT...
Table of contents 1. Where is the self-incremente...
Some common statements for viewing transactions a...
Introduction: Interface designer Joshua Porter pub...
Table of contents 1. What is Docker Compose and h...
Many people have encountered this error when star...
This article shares the specific code of using ca...
In the horizontal direction, you can set the cell...