Skip to content

Commit

Permalink
revert no longer necessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomivirkki committed Dec 13, 2024
1 parent b150337 commit 2fe269c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
8 changes: 0 additions & 8 deletions packages/form-layout/src/vaadin-form-item-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,6 @@ export const FormItemMixin = (superClass) =>
this.__fieldNode = null;
}

connectedCallback() {
super.connectedCallback();

if (this.performUpdate) {
this.performUpdate();
}
}

/**
* Returns a target element to add ARIA attributes to for a field.
*
Expand Down
4 changes: 0 additions & 4 deletions packages/form-layout/src/vaadin-form-layout-mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,6 @@ export const FormLayoutMixin = (superClass) =>
connectedCallback() {
super.connectedCallback();

if (this.performUpdate) {
this.performUpdate();
}

requestAnimationFrame(() => this._selectResponsiveStep());
requestAnimationFrame(() => this._updateLayout());

Expand Down
10 changes: 3 additions & 7 deletions packages/form-layout/test/form-item.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ describe('form-item', () => {
describe('basic features', () => {
let labelSlot, inputSlot;

beforeEach(async () => {
beforeEach(() => {
item = fixtureSync(`
<vaadin-form-item>
<label slot="label">Label</label>
<input>
</vaadin-form-item>
`);
await nextFrame();
label = item.querySelector('label');
input = item.querySelector('input');
labelSlot = item.shadowRoot.querySelector('slot[name="label"]');
Expand All @@ -39,14 +38,13 @@ describe('form-item', () => {
});

describe('label positioning', () => {
beforeEach(async () => {
beforeEach(() => {
item = fixtureSync(`
<vaadin-form-item>
<label slot="label">Label</label>
<input>
</vaadin-form-item>
`);
await nextFrame();
label = item.querySelector('label');
input = item.querySelector('input');
});
Expand Down Expand Up @@ -86,7 +84,6 @@ describe('form-item', () => {
beforeEach(async () => {
const item1 = fixtureSync(`<vaadin-form-item><label slot="label">Label</label></vaadin-form-item>`);
const item2 = fixtureSync(`<vaadin-form-item><label slot="label">Label</label></vaadin-form-item>`);
await nextFrame();
label1 = item1.querySelector('label');
label2 = item2.querySelector('label');
await nextFrame();
Expand Down Expand Up @@ -314,14 +311,13 @@ describe('form-item', () => {
document.body.removeChild(testInput);
});

beforeEach(async () => {
beforeEach(() => {
item = fixtureSync(`
<vaadin-form-item>
<label slot="label">Label</label>
<input>
</vaadin-form-item>
`);
await nextFrame();
label = item.querySelector('label');
input = item.querySelector('input');
item.style.width = '100%';
Expand Down

0 comments on commit 2fe269c

Please sign in to comment.