Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(() => {
// initialize a shuffle instance.
this.shuffle = new Shuffle(this.element, {
itemSelector: '.post',
sizer: document.getElementsByClassName('sizer')[0],
delimeter: ',',
initialSort: {
by: sortByDate,
reverse: true,
},
group: filterGroup,
});
this.shuffle.resetItems();
this.addShuffleEventListeners();
});
// temporarily set data attribute taborder = 'visual' to focusable eleements outside this commponent
componentDidMount(){
this.shuffle = new Shuffle(this.shuffleDemo, {
itemSelector: '.shuffle-item',
sizer: this.sizer,
});
}
componentDidUpdate() {
componentDidMount(){
this.shuffle = new Shuffle(this.shuffleDemo, {
itemSelector: '.photo-item',
sizer: this.sizer,
});
}
componentDidUpdate() {