@villedemontreal/angular-ui 14.3.1 → 14.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3940,10 +3940,7 @@ class BaoDropdownMenuItem {
3940
3940
  }
3941
3941
  enterKeyEvent() {
3942
3942
  if (document.activeElement == this.nativeElement) {
3943
- if (this.nativeElement.attributes['href']) {
3944
- this._parent.setNavigationAttribute(this.nativeElement);
3945
- }
3946
- this.propagateClick();
3943
+ this.nativeElement.click();
3947
3944
  }
3948
3945
  }
3949
3946
  ngAfterViewInit() {
@@ -4261,6 +4258,7 @@ class BaoDropdownMenuTrigger {
4261
4258
  this.overlay = overlay;
4262
4259
  this._overlayRef = null;
4263
4260
  this._isMenuOpen = false;
4261
+ this.animationDelay = 50;
4264
4262
  }
4265
4263
  get nativeElement() {
4266
4264
  return this.elementRef.nativeElement;
@@ -4279,7 +4277,7 @@ class BaoDropdownMenuTrigger {
4279
4277
  this.renderer.setAttribute(this.nativeElement, 'aria-controls', `bao-dropdown-menu-${dropdownMenuUniqueId}`);
4280
4278
  this.menu.isClosedByKeyEvent.subscribe(() => {
4281
4279
  this.closeMenu();
4282
- setTimeout(() => this.nativeElement.focus(), 50);
4280
+ setTimeout(() => this.nativeElement.focus(), this.animationDelay);
4283
4281
  });
4284
4282
  }
4285
4283
  ngOnDestroy() {
@@ -4305,7 +4303,7 @@ class BaoDropdownMenuTrigger {
4305
4303
  overlayRef.attach(this.menu.menuPortal);
4306
4304
  this._isMenuOpen = true;
4307
4305
  this.menu.open();
4308
- this.menu.focus();
4306
+ setTimeout(() => this.menu.focus(), this.animationDelay);
4309
4307
  }
4310
4308
  createOverlay() {
4311
4309
  if (!this._overlayRef) {