public updated()

in components/RuiExpandCollapse/src/RuiExpandCollapse.ts [232:247]


	public updated(changedProperties: Map<string, RuiExpandCollapsePropertyType>): void {
		changedProperties.forEach((oldValue: RuiExpandCollapsePropertyType, propName: string): void => {
			// detect change in open prop and trigger animation as necessary
			if (propName === 'open' && this._collapsibleEl) {
				// transition from closed to open
				if (this.open && !oldValue) {
					this._triggerExpandAnimation();
				}

				// transition from open to closed
				if (!this.open && oldValue) {
					this._triggerCollapseAnimation();
				}
			}
		});
	}