Change again the way of showing by adding and clearing the className
This commit is contained in:
@@ -533,9 +533,10 @@
|
|||||||
},
|
},
|
||||||
observeRequestButton() {
|
observeRequestButton() {
|
||||||
const requestElement = this.$refs.request.$el;
|
const requestElement = this.$refs.request.$el;
|
||||||
|
const sendButton = this.$refs.sendButton;
|
||||||
const observer = new IntersectionObserver((entries, observer) => {
|
const observer = new IntersectionObserver((entries, observer) => {
|
||||||
entries.forEach(entry => {
|
entries.forEach(entry => {
|
||||||
this.$refs.sendButton.classList.toggle('show');
|
sendButton.className = entry.isIntersecting ? '' : 'show';
|
||||||
});
|
});
|
||||||
}, { threshold: 1 });
|
}, { threshold: 1 });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user