@brightspace-ui/core 1.223.0 → 1.224.0

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.
@@ -184,7 +184,7 @@ class ScrollWrapper extends FocusVisiblePolyfillMixin(RtlMixin(LitElement)) {
184
184
 
185
185
  scrollDistance(distance, smooth) {
186
186
  if (!this._container) return;
187
- if (this._dir === 'rtl') distance = distance * RTL_MULTIPLIER;
187
+ if (this.dir === 'rtl') distance = distance * RTL_MULTIPLIER;
188
188
  if (this._container.scrollBy) {
189
189
  this._container.scrollBy({ left: distance, behavior: smooth ? 'smooth' : 'auto' });
190
190
  } else {
@@ -138,13 +138,13 @@ export const SelectionMixin = superclass => class extends RtlMixin(superclass) {
138
138
  if (currentIndex === -1) currentIndex = 0;
139
139
  let newIndex;
140
140
 
141
- if ((this._dir !== 'rtl' && e.keyCode === keyCodes.RIGHT)
142
- || (this._dir === 'rtl' && e.keyCode === keyCodes.LEFT)
141
+ if ((this.dir !== 'rtl' && e.keyCode === keyCodes.RIGHT)
142
+ || (this.dir === 'rtl' && e.keyCode === keyCodes.LEFT)
143
143
  || e.keyCode === keyCodes.DOWN) {
144
144
  if (currentIndex === selectables.length - 1) newIndex = 0;
145
145
  else newIndex = currentIndex + 1;
146
- } else if ((this._dir !== 'rtl' && e.keyCode === keyCodes.LEFT)
147
- || (this._dir === 'rtl' && e.keyCode === keyCodes.RIGHT)
146
+ } else if ((this.dir !== 'rtl' && e.keyCode === keyCodes.LEFT)
147
+ || (this.dir === 'rtl' && e.keyCode === keyCodes.RIGHT)
148
148
  || e.keyCode === keyCodes.UP) {
149
149
  if (currentIndex === 0) newIndex = selectables.length - 1;
150
150
  else newIndex = currentIndex - 1;