Skip to content

Commit 630d4ea

Browse files
committed
fix(item-sliding): check for side attribute
1 parent 5ca8fc8 commit 630d4ea

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
@@ -263,7 +263,7 @@ export class ItemSliding implements ComponentInterface {
263263
// eslint-disable-next-line custom-rules/no-component-on-ready-method
264264
const option = (item as any).componentOnReady !== undefined ? await item.componentOnReady() : item;
265265

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

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

0 commit comments

Comments
 (0)