From a5428e86ee41698714ce9e0ff84070adc813be93 Mon Sep 17 00:00:00 2001 From: xzl <37364772+xuzheliang135@users.noreply.github.com> Date: Thu, 7 Apr 2022 22:30:22 +0800 Subject: [PATCH 1/2] fix dropdown-menu disappear refer to issue 89 --- src/dropdownV3.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dropdownV3.ts b/src/dropdownV3.ts index fdf68c7..4e5f498 100644 --- a/src/dropdownV3.ts +++ b/src/dropdownV3.ts @@ -219,6 +219,7 @@ export class DropdownV3 { this._dd.append(liList); + this.show(); } protected itemSelectedLaunchEvent(item: any): void { From 320bda3727cae11ef7d10c8db0746c82d20c8ab8 Mon Sep 17 00:00:00 2001 From: xuzheliang <37364772+xuzheliang135@users.noreply.github.com> Date: Fri, 8 Apr 2022 21:39:11 +0800 Subject: [PATCH 2/2] fix the miss of css "overflow" in dropdownV3 --- src/dropdownV3.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dropdownV3.ts b/src/dropdownV3.ts index 4e5f498..95ba2d0 100644 --- a/src/dropdownV3.ts +++ b/src/dropdownV3.ts @@ -196,7 +196,7 @@ export class DropdownV3 { const li = $('
  • '); li.append( - $('').attr('href', '#!').html(itemHtml) + $('').attr('href', '#!').css({ 'overflow': 'hidden', 'text-overflow': 'ellipsis' }).html(itemHtml) ) .data('item', item); @@ -210,7 +210,7 @@ export class DropdownV3 { // No results const li = $('
  • '); li.append( - $('').attr('href', '#!').html(this.noResultsText) + $('').attr('href', '#!').css({ 'overflow': 'hidden', 'text-overflow': 'ellipsis' }).html(this.noResultsText) ) .addClass('disabled');