Skip to content

Commit 76a5968

Browse files
authored
Merge pull request #539 from Tencent/fix/dropdown-menu/radio
fix(dropdown-menu): close after radio change
2 parents 5d01d0c + eea595c commit 76a5968

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/dropdown-menu/dropdown-item.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ export default class DropdownMenuItem extends SuperComponent {
177177
}
178178

179179
this._trigger('change', { value });
180+
181+
if (!this.data.multiple) {
182+
this.closeDropdown();
183+
}
180184
},
181185

182186
handleMaskClick() {

0 commit comments

Comments
 (0)