@vaadin/multi-select-combo-box 23.2.5 → 23.2.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/multi-select-combo-box",
3
- "version": "23.2.5",
3
+ "version": "23.2.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -37,14 +37,14 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@polymer/polymer": "^3.0.0",
40
- "@vaadin/combo-box": "~23.2.5",
41
- "@vaadin/component-base": "~23.2.5",
42
- "@vaadin/field-base": "~23.2.5",
43
- "@vaadin/input-container": "~23.2.5",
44
- "@vaadin/lit-renderer": "~23.2.5",
45
- "@vaadin/vaadin-lumo-styles": "~23.2.5",
46
- "@vaadin/vaadin-material-styles": "~23.2.5",
47
- "@vaadin/vaadin-themable-mixin": "~23.2.5"
40
+ "@vaadin/combo-box": "~23.2.7",
41
+ "@vaadin/component-base": "~23.2.7",
42
+ "@vaadin/field-base": "~23.2.7",
43
+ "@vaadin/input-container": "~23.2.7",
44
+ "@vaadin/lit-renderer": "~23.2.7",
45
+ "@vaadin/vaadin-lumo-styles": "~23.2.7",
46
+ "@vaadin/vaadin-material-styles": "~23.2.7",
47
+ "@vaadin/vaadin-themable-mixin": "~23.2.7"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@esm-bundle/chai": "^4.3.4",
@@ -55,5 +55,5 @@
55
55
  "web-types.json",
56
56
  "web-types.lit.json"
57
57
  ],
58
- "gitHead": "ec895786a271257420f69043ffb8de7088cea22c"
58
+ "gitHead": "bdaf12e4200bd68a3a9224bdf4cb41954f1b8bf1"
59
59
  }
@@ -961,10 +961,10 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
961
961
  this._onBackSpace(chips);
962
962
  break;
963
963
  case 'ArrowLeft':
964
- this._onArrowLeft(chips);
964
+ this._onArrowLeft(chips, event);
965
965
  break;
966
966
  case 'ArrowRight':
967
- this._onArrowRight(chips);
967
+ this._onArrowRight(chips, event);
968
968
  break;
969
969
  default:
970
970
  this._focusedChipIndex = -1;
@@ -974,12 +974,15 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
974
974
  }
975
975
 
976
976
  /** @private */
977
- _onArrowLeft(chips) {
978
- if (this.inputElement.value !== '' || this.opened) {
977
+ _onArrowLeft(chips, event) {
978
+ if (this.inputElement.selectionStart !== 0) {
979
979
  return;
980
980
  }
981
981
 
982
982
  const idx = this._focusedChipIndex;
983
+ if (idx !== -1) {
984
+ event.preventDefault();
985
+ }
983
986
  let newIdx;
984
987
 
985
988
  if (this.getAttribute('dir') !== 'rtl') {
@@ -1004,12 +1007,15 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
1004
1007
  }
1005
1008
 
1006
1009
  /** @private */
1007
- _onArrowRight(chips) {
1008
- if (this.inputElement.value !== '' || this.opened) {
1010
+ _onArrowRight(chips, event) {
1011
+ if (this.inputElement.selectionStart !== 0) {
1009
1012
  return;
1010
1013
  }
1011
1014
 
1012
1015
  const idx = this._focusedChipIndex;
1016
+ if (idx !== -1) {
1017
+ event.preventDefault();
1018
+ }
1013
1019
  let newIdx;
1014
1020
 
1015
1021
  if (this.getAttribute('dir') === 'rtl') {
@@ -1035,7 +1041,7 @@ class MultiSelectComboBox extends ResizeMixin(InputControlMixin(ThemableMixin(El
1035
1041
 
1036
1042
  /** @private */
1037
1043
  _onBackSpace(chips) {
1038
- if (this.inputElement.value !== '' || this.opened) {
1044
+ if (this.inputElement.selectionStart !== 0) {
1039
1045
  return;
1040
1046
  }
1041
1047
 
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/multi-select-combo-box",
4
- "version": "23.2.5",
4
+ "version": "23.2.7",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/multi-select-combo-box",
4
- "version": "23.2.5",
4
+ "version": "23.2.7",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {