@vaadin/component-base
Advanced tools
Comparing version 22.0.4 to 22.0.5
{ | ||
"name": "@vaadin/component-base", | ||
"version": "22.0.4", | ||
"version": "22.0.5", | ||
"publishConfig": { | ||
@@ -44,3 +44,3 @@ "access": "public" | ||
}, | ||
"gitHead": "55891f68d4da41e846e06dfe51dceba1665e41ce" | ||
"gitHead": "3e1990867670f3de2dec6fa1200d945623b2710c" | ||
} |
@@ -35,3 +35,3 @@ /** | ||
static get version() { | ||
return '22.0.4'; | ||
return '22.0.5'; | ||
} | ||
@@ -38,0 +38,0 @@ |
@@ -6,2 +6,3 @@ /** | ||
*/ | ||
import { dashToCamelCase } from '@polymer/polymer/lib/utils/case-map.js'; | ||
import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js'; | ||
@@ -34,6 +35,9 @@ | ||
// Support dash-case slot names e.g. "error-message" | ||
const field = `${dashToCamelCase(prefix)}Id`; | ||
// Maintain the unique ID counter for a given prefix. | ||
this[`${prefix}Id`] = 1 + this[`${prefix}Id`] || 0; | ||
this[field] = 1 + this[field] || 0; | ||
return `${prefix}-${host.localName}-${this[`${prefix}Id`]}`; | ||
return `${prefix}-${host.localName}-${this[field]}`; | ||
} | ||
@@ -40,0 +44,0 @@ |
@@ -59,3 +59,5 @@ /** | ||
if (disabled) { | ||
this.__lastTabIndex = this.tabindex; | ||
if (this.tabindex !== undefined) { | ||
this.__lastTabIndex = this.tabindex; | ||
} | ||
this.tabindex = -1; | ||
@@ -62,0 +64,0 @@ } else if (oldDisabled) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114543
3009