Skip to content

Commit 5cbd4ca

Browse files
committed
chore(QExpansionItem): improve animation of toggle icon
1 parent da0f524 commit 5cbd4ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/src/components/expansion-item/QExpansionItem.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ export default Vue.extend({
138138
const child = [
139139
h(QIcon, {
140140
staticClass: 'q-expansion-item__toggle-icon',
141-
class: this.showing === true ? 'q-expansion-item__toggle-icon--rotated' : void 0,
141+
class: this.expandedIcon === void 0 && this.showing === true
142+
? 'q-expansion-item__toggle-icon--rotated'
143+
: void 0,
142144
props: { name: this.expansionIcon }
143145
})
144146
]

0 commit comments

Comments
 (0)