Carousel: Fix dispatch default parameter value
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
}
|
||||
|
||||
// Send current photo to event
|
||||
const sendCurrentPhoto = ({ init = false }) => {
|
||||
const sendCurrentPhoto = (init = false) => {
|
||||
dispatch('photoChange', {
|
||||
currentPhoto: photos[currentIndex],
|
||||
init
|
||||
@@ -102,7 +102,7 @@
|
||||
animateIn(scope)
|
||||
}
|
||||
|
||||
// Hover function
|
||||
// Controls hover
|
||||
hover = event => {
|
||||
const button = event.currentTarget.querySelector('button')
|
||||
const photoActive = document.querySelector('.gallery__photo--active')
|
||||
|
||||
Reference in New Issue
Block a user