Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/devextreme-angular/src/server/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export class DxServerModule {
temp.innerHTML = renderToString(el);

const mainElement = temp.childNodes[0];
if (!mainElement) {
Copy link

Copilot AI Apr 28, 2026

Choose a reason for hiding this comment

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

When renderToString(el) returns an empty string, this early return leaves container.innerHTML unchanged (potentially stale from a previous render). Consider clearing container.innerHTML (and returning) in this branch to align with renderIntoContainer's jsx === null handling and ensure consistent SSR output.

Suggested change
if (!mainElement) {
if (!mainElement) {
container.innerHTML = '';

Copilot uses AI. Check for mistakes.
return;
}
const childString = mainElement.innerHTML;

for (let i = 0; i < mainElement.attributes.length; i++) {
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/__internal/m_draggable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ class Draggable extends DOMComponent<Draggable, Properties> {
}

_stopAnimator() {
this._scrollAnimator.stop();
this._scrollAnimator?.stop();
}

_addWidgetPrefix(className?) {
Expand Down
Loading