Skip to content

Commit ad44d32

Browse files
committed
fix(drop-down): 修复下拉菜单right-click左击也会触发
修改的部分涉及到原本hover时,也可以通过click触发,增加了右击的判断
1 parent 5021711 commit ad44d32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devui/dropdown/dropdown-toggle.directive.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class DropDownToggleDirective implements OnInit, AfterViewInit {
3737

3838
@HostListener('click', ['$event'])
3939
toggleDropdown(event: MouseEvent) {
40-
if (!this.disabled && this.dropdown.trigger !== 'manually') {
40+
if (!this.disabled && this.dropdown.trigger !== 'manually' && this.dropdown.trigger !== 'right-click') {
4141
this.dropdown.toggle();
4242
}
4343
return false;

0 commit comments

Comments
 (0)