mn-angular-lib 2.0.28 → 2.0.29

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.
@@ -4012,7 +4012,8 @@ class MnDropdown {
4012
4012
  /**
4013
4013
  * The command that takes focus once the opened menu has rendered: the first or last one,
4014
4014
  * or none when a desktop search box takes focus instead. Set by {@link open}, consumed by
4015
- * the panel and sheet queries the moment the menu appears.
4015
+ * the panel and sheet queries the moment the menu appears, or by {@link open} itself when
4016
+ * the panel is still mounted from a close that has not rendered yet.
4016
4017
  */
4017
4018
  pendingFocus = null;
4018
4019
  /** Stable fallback id, used when {@link MnDropdownProps.id} is omitted. Generated once per
@@ -4130,6 +4131,10 @@ class MnDropdown {
4130
4131
  // open the panel without an event, and under OnPush nothing else marks this view.
4131
4132
  this.isOpen = true;
4132
4133
  this.cdr.markForCheck();
4134
+ // Reopened before the close rendered (Escape then Enter inside one frame): the panel never
4135
+ // left, so no query setter fires to take the hand-off. Make it here instead.
4136
+ if (this.movedPanel || this.sheetHost)
4137
+ this.focusPendingItem();
4133
4138
  if (this.isSheet) {
4134
4139
  // A sheet is anchored to the viewport, so it needs no trigger tracking — only a
4135
4140
  // scroll lock so the page behind it stays put.