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

SelectBox: should not throw an error if its detached template is re-mounted by a framework (T1178295) #25467

Conversation

VasilyStrelyaev
Copy link
Contributor

No description provided.

@VasilyStrelyaev VasilyStrelyaev force-pushed the no-excessive-onrendered-on-remount branch from 30392e3 to a0a62c1 Compare September 6, 2023 14:41
@VasilyStrelyaev VasilyStrelyaev changed the title Fix excessive onRendered call when a template is re-mounted but not re-rendered (T1178295) SelectBox no longer throws an error if its detached template is re-mounted by the framework (T1178295) Sep 6, 2023
@VasilyStrelyaev VasilyStrelyaev changed the title SelectBox no longer throws an error if its detached template is re-mounted by the framework (T1178295) SelectBox no longer throws an error if its detached template is re-mounted by a framework (T1178295) Sep 6, 2023
@VasilyStrelyaev VasilyStrelyaev marked this pull request as ready for review September 6, 2023 16:30
@VasilyStrelyaev VasilyStrelyaev requested review from a team and dxvladislavvolkov and removed request for ivanblinov2k17 September 7, 2023 12:06
@ksercs ksercs changed the title SelectBox no longer throws an error if its detached template is re-mounted by a framework (T1178295) SelectBox: should not throw an error if its detached template is re-mounted by a framework (T1178295) Sep 8, 2023
ksercs
ksercs previously approved these changes Sep 8, 2023
@@ -354,8 +352,9 @@ const DropDownEditor = TextBox.inherit({
model: data,
container: getPublicElement($templateWrapper),
onRendered: () => {
this._fieldRenderQueueLength--;
if(this._fieldRenderQueueLength !== 0) {
const renderedInRoot = !!this.$element().find($templateWrapper).length;
Copy link
Contributor

Choose a reason for hiding this comment

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

[minor]

Suggested change
const renderedInRoot = !!this.$element().find($templateWrapper).length;
const isRenderedInRoot = !!this.$element().find($templateWrapper).length;

@VasilyStrelyaev VasilyStrelyaev requested review from ivanblinov2k17 and removed request for dxvladislavvolkov September 11, 2023 15:18
@VasilyStrelyaev VasilyStrelyaev merged commit 04b7c1c into DevExpress:23_2 Sep 12, 2023
159 checks passed
VasilyStrelyaev added a commit to VasilyStrelyaev/DevExtreme that referenced this pull request Sep 12, 2023
VasilyStrelyaev added a commit to VasilyStrelyaev/DevExtreme that referenced this pull request Sep 12, 2023
@EugeniyKiyashko
Copy link
Contributor

EugeniyKiyashko commented Sep 12, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants