Change again the way of showing by adding and clearing the className

This commit is contained in:
Igor Guastalla de Lima
2019-08-30 09:36:16 -03:00
parent 4b4e6ca31a
commit daa491cd17

View File

@@ -533,9 +533,10 @@
},
observeRequestButton() {
const requestElement = this.$refs.request.$el;
const sendButton = this.$refs.sendButton;
const observer = new IntersectionObserver((entries, observer) => {
entries.forEach(entry => {
this.$refs.sendButton.classList.toggle('show');
sendButton.className = entry.isIntersecting ? '' : 'show';
});
}, { threshold: 1 });