handsontable 0.0.0-next-f0b9f34-20240515 → 0.0.0-next-78c52c0-20240515

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.

Potentially problematic release.


This version of handsontable might be problematic. Click here for more details.

@@ -318,12 +318,14 @@ class AutocompleteEditor extends _handsontableEditor.HandsontableEditor {
318
318
  choices = sorted;
319
319
  }
320
320
  this.strippedChoices = choices;
321
- this.htEditor.loadData((0, _array.pivot)([choices]));
322
321
  if (choices.length === 0) {
323
322
  this.htEditor.rootElement.style.display = 'none';
324
323
  } else {
325
324
  this.htEditor.rootElement.style.display = '';
326
- this.updateDropdownHeight();
325
+ }
326
+ this.htEditor.loadData((0, _array.pivot)([choices]));
327
+ if (choices.length > 0) {
328
+ this.updateDropdownDimensions();
327
329
  this.flipDropdownIfNeeded();
328
330
  if (this.cellProperties.strict === true) {
329
331
  this.highlightBestMatchingChoice(highlightIndex);
@@ -420,7 +422,7 @@ class AutocompleteEditor extends _handsontableEditor.HandsontableEditor {
420
422
  *
421
423
  * @private
422
424
  */
423
- updateDropdownHeight() {
425
+ updateDropdownDimensions() {
424
426
  const currentDropdownWidth = this.htEditor.getColWidth(0) + (0, _element.getScrollbarWidth)(this.hot.rootDocument) + 2;
425
427
  const trimDropdown = this.cellProperties.trimDropdown;
426
428
  this.htEditor.updateSettings({
@@ -315,12 +315,14 @@ export class AutocompleteEditor extends HandsontableEditor {
315
315
  choices = sorted;
316
316
  }
317
317
  this.strippedChoices = choices;
318
- this.htEditor.loadData(pivot([choices]));
319
318
  if (choices.length === 0) {
320
319
  this.htEditor.rootElement.style.display = 'none';
321
320
  } else {
322
321
  this.htEditor.rootElement.style.display = '';
323
- this.updateDropdownHeight();
322
+ }
323
+ this.htEditor.loadData(pivot([choices]));
324
+ if (choices.length > 0) {
325
+ this.updateDropdownDimensions();
324
326
  this.flipDropdownIfNeeded();
325
327
  if (this.cellProperties.strict === true) {
326
328
  this.highlightBestMatchingChoice(highlightIndex);
@@ -417,7 +419,7 @@ export class AutocompleteEditor extends HandsontableEditor {
417
419
  *
418
420
  * @private
419
421
  */
420
- updateDropdownHeight() {
422
+ updateDropdownDimensions() {
421
423
  const currentDropdownWidth = this.htEditor.getColWidth(0) + getScrollbarWidth(this.hot.rootDocument) + 2;
422
424
  const trimDropdown = this.cellProperties.trimDropdown;
423
425
  this.htEditor.updateSettings({
package/helpers/mixed.js CHANGED
@@ -134,7 +134,7 @@ const domMessages = {
134
134
  function _injectProductInfo(key, element) {
135
135
  const hasValidType = !isEmpty(key);
136
136
  const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
137
- const hotVersion = "0.0.0-next-f0b9f34-20240515";
137
+ const hotVersion = "0.0.0-next-78c52c0-20240515";
138
138
  let keyValidityDate;
139
139
  let consoleMessageState = 'invalid';
140
140
  let domMessageState = 'invalid';
package/helpers/mixed.mjs CHANGED
@@ -124,7 +124,7 @@ const domMessages = {
124
124
  export function _injectProductInfo(key, element) {
125
125
  const hasValidType = !isEmpty(key);
126
126
  const isNonCommercial = typeof key === 'string' && key.toLowerCase() === 'non-commercial-and-evaluation';
127
- const hotVersion = "0.0.0-next-f0b9f34-20240515";
127
+ const hotVersion = "0.0.0-next-78c52c0-20240515";
128
128
  let keyValidityDate;
129
129
  let consoleMessageState = 'invalid';
130
130
  let domMessageState = 'invalid';
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "url": "https://github.com/handsontable/handsontable/issues"
11
11
  },
12
12
  "author": "Handsoncode <hello@handsontable.com>",
13
- "version": "0.0.0-next-f0b9f34-20240515",
13
+ "version": "0.0.0-next-78c52c0-20240515",
14
14
  "main": "index",
15
15
  "module": "index.mjs",
16
16
  "jsnext:main": "index.mjs",