@vaadin/component-base 25.1.6 → 25.1.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/component-base",
3
- "version": "25.1.6",
3
+ "version": "25.1.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,11 +38,11 @@
38
38
  "lit": "^3.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@vaadin/chai-plugins": "~25.1.6",
42
- "@vaadin/test-runner-commands": "~25.1.6",
41
+ "@vaadin/chai-plugins": "~25.1.7",
42
+ "@vaadin/test-runner-commands": "~25.1.7",
43
43
  "@vaadin/testing-helpers": "^2.0.0",
44
44
  "sinon": "^21.0.2"
45
45
  },
46
46
  "customElements": "custom-elements.json",
47
- "gitHead": "75fe4575b9210768058cd6994ea00066e408d4a6"
47
+ "gitHead": "9872e9dc95ced20136b2f5373760d8e47bf9d44b"
48
48
  }
package/src/define.js CHANGED
@@ -13,7 +13,7 @@ function dashToCamelCase(dash) {
13
13
 
14
14
  const experimentalMap = {};
15
15
 
16
- export function defineCustomElement(CustomElement, version = '25.1.6') {
16
+ export function defineCustomElement(CustomElement, version = '25.1.7') {
17
17
  Object.defineProperty(CustomElement, 'version', {
18
18
  get() {
19
19
  return version;
@@ -90,7 +90,12 @@ export class IronListAdapter {
90
90
  if (this.reorderElements) {
91
91
  // Reordering the physical elements cancels the user's grab of the scroll bar handle on Safari.
92
92
  // Need to defer reordering until the user lets go of the scroll bar handle.
93
- this.scrollTarget.addEventListener('mousedown', () => {
93
+ this.scrollTarget.addEventListener('mousedown', (event) => {
94
+ // Only handle clicks on the scroll target itself
95
+ if (event.target !== this.scrollTarget) {
96
+ return;
97
+ }
98
+
94
99
  this.__mouseDown = true;
95
100
  });
96
101
  this.scrollTarget.addEventListener('mouseup', () => {