Skip to content

Commit

Permalink
chore: event for 'size:change'
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasGz committed Jul 19, 2024
1 parent ed51f1b commit 4fe6c95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/SizeSelector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import large from './images/large';

import './index.scss';

const events = ['event'];
const events = ['size:change'];

const html = `
<div class="container-size-selector" role="radiogroup">
Expand Down Expand Up @@ -124,10 +124,10 @@ SizeSelector.prototype = Object.assign(

emitCardEvent(eventName, card, index) {
if (eventName === 'click') {
this.emit('event', card, index);
this.emit('size:change', card, index);
}
if (eventName === 'keydown') {
this.emit('event', card, index);
this.emit('size:change', card, index);
}
},

Expand Down

0 comments on commit 4fe6c95

Please sign in to comment.