Skip to content

Commit 41532cf

Browse files
committed
fix(calendar): update orientation property change detection logic
1 parent 8f1abe7 commit 41532cf

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/components/calendar/calendar.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,13 @@ export default class IgcCalendarComponent extends EventEmitterMixin<
199199
* is being shown.
200200
* @attr orientation
201201
*/
202-
@property({ reflect: true, attribute: 'orientation' })
202+
@property({
203+
reflect: true,
204+
attribute: 'orientation',
205+
hasChanged(newVal, oldVal) {
206+
return oldVal === undefined || newVal !== 'horizontal';
207+
},
208+
})
203209
public orientation: ContentOrientation = 'horizontal';
204210

205211
/**

0 commit comments

Comments
 (0)