@vaadin/component-base 24.6.0-beta1 → 24.6.0-rc1

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": "24.6.0-beta1",
3
+ "version": "24.6.0-rc1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,9 +38,9 @@
38
38
  "lit": "^3.0.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@vaadin/chai-plugins": "24.6.0-beta1",
41
+ "@vaadin/chai-plugins": "24.6.0-rc1",
42
42
  "@vaadin/testing-helpers": "^1.0.0",
43
43
  "sinon": "^18.0.0"
44
44
  },
45
- "gitHead": "ab28efb0dcf2cd1ef72100e2e8f32232fa49aacc"
45
+ "gitHead": "d62ba309e3286777ad3ea7e015d50a2c4976bb42"
46
46
  }
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 = '24.6.0-beta1') {
16
+ export function defineCustomElement(CustomElement, version = '24.6.0-rc1') {
17
17
  Object.defineProperty(CustomElement, 'version', {
18
18
  get() {
19
19
  return version;
@@ -213,6 +213,9 @@ const PolylitMixinImplementation = (superclass) => {
213
213
 
214
214
  /** @protected */
215
215
  updated(props) {
216
+ const wasReadyInvoked = this.__isReadyInvoked;
217
+ this.__isReadyInvoked = true;
218
+
216
219
  if (this.constructor.__observers) {
217
220
  this.__runObservers(props, this.constructor.__observers);
218
221
  }
@@ -233,8 +236,7 @@ const PolylitMixinImplementation = (superclass) => {
233
236
  this.__runNotifyProps(props, this.constructor.__notifyProps);
234
237
  }
235
238
 
236
- if (!this.__isReadyInvoked) {
237
- this.__isReadyInvoked = true;
239
+ if (!wasReadyInvoked) {
238
240
  this.ready();
239
241
  }
240
242
  }