@brightspace-ui/core 2.51.0 → 2.51.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.
@@ -98,9 +98,12 @@ class LoadMore extends FocusMixin(FocusVisiblePolyfillMixin(LocalizeCoreElement(
98
98
 
99
99
  render() {
100
100
  if (!this.hasMore) return;
101
- return html`<button ?disabled="${this._loading}" class="d2l-label-text" @click="${this._handleClick}" type="button">
101
+ return html`
102
102
  ${this._loading ? html`
103
103
  <span class="d2l-offscreen" role="alert">${this.localize('components.pager-load-more.status-loading')}</span>
104
+ ` : nothing}
105
+ <button class="d2l-label-text" @click="${this._handleClick}" type="button">
106
+ ${this._loading ? html`
104
107
  <d2l-loading-spinner size="24"></d2l-loading-spinner>
105
108
  ` : html`
106
109
  <span class="action">${this.localize('components.pager-load-more.action', { count: formatNumber(this.pageSize) })}</span>
@@ -115,6 +118,7 @@ class LoadMore extends FocusMixin(FocusVisiblePolyfillMixin(LocalizeCoreElement(
115
118
  }
116
119
 
117
120
  async _handleClick() {
121
+ if (this._loading) return;
118
122
  const pageable = findComposedAncestor(this, node => node._pageable);
119
123
  if (!pageable) return;
120
124
  const lastItemIndex = pageable._getLastItemIndex();
@@ -68,7 +68,7 @@ The `d2l-tag-list-item` provides the appropriate `listitem` semantics and stylin
68
68
 
69
69
  document.addEventListener('d2l-tag-list-item-clear', (e) => {
70
70
  e.target.parentNode.removeChild(e.target);
71
- console.log(`d2l-tag-list-item-clear event dispatched. Value: ${e.detail.value}, handleFocus: ${e.detail.handleFocus}`);
71
+ console.log(`d2l-tag-list-item-clear event dispatched. Value: ${e.detail.value}`);
72
72
  });
73
73
  </script>
74
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.51.0",
3
+ "version": "2.51.2",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",