Skip to content

Commit c564056

Browse files
committed
fix(item-sliding): check for side attribute
1 parent f1d50c0 commit c564056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/components/item-sliding/item-sliding.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ export class ItemSliding implements ComponentInterface {
262262
// eslint-disable-next-line custom-rules/no-component-on-ready-method
263263
const option = (item as any).componentOnReady !== undefined ? await item.componentOnReady() : item;
264264

265-
const side = isEndSide(option.side) ? 'end' : 'start';
265+
const side = isEndSide(option.side ?? option.getAttribute('side')) ? 'end' : 'start';
266266

267267
if (side === 'start') {
268268
this.leftOptions = option;

0 commit comments

Comments
 (0)