Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🚩esl-modal]: beta release version of esl-modal module #1969

Draft
wants to merge 39 commits into
base: main
Choose a base branch
from

Conversation

NastaLeo
Copy link
Collaborator

@NastaLeo NastaLeo commented Oct 2, 2023

Closes: #1376

NastaLeo and others added 26 commits July 18, 2023 22:00
@NastaLeo NastaLeo added feature New feature needs review The PR is waiting for review labels Oct 2, 2023
@NastaLeo NastaLeo added this to the ⚡ESL: 4.13.0 Minor release milestone Oct 2, 2023
@NastaLeo NastaLeo requested a review from a team October 2, 2023 12:32
@NastaLeo NastaLeo requested review from dshovchko, ala-n and julia-murashko and removed request for a team October 2, 2023 12:32
@ala-n ala-n removed the needs review The PR is waiting for review label Oct 18, 2023
Comment on lines 62 to 65
if (!this.cache[selector]) {
this.cache[selector] = this.$fragment.querySelector(selector);
}
return this.cache[selector];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess you missed clearing the cache in the clear() method (in row number 52).

expect(ESLModalStack.store[1]).toBe(TEMPLATE.$modal2);
expect(ESLModalStack.store.length).toBe(2);
});
test('Closing and removing parent modal from store leads to hide all nested modals in case their are opened before target modal closes and its removing from store', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it can be simplified

Suggested change
test('Closing and removing parent modal from store leads to hide all nested modals in case their are opened before target modal closes and its removing from store', () => {
test('Removing the parent modal leads to hiding all nested modals if opened', () => {

@ala-n ala-n force-pushed the main branch 4 times, most recently from df09192 to 5f44df3 Compare January 17, 2025 02:32
@ala-n ala-n removed this from the ⚡ESL: 5.1.0 Minor release milestone Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[🚩esl-modal]: beta release version of esl-modal module
3 participants