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

[Bug]: Ngx Editor Not Registering Input Value on Page Navigation #521

Open
timoachtelik opened this issue Feb 23, 2024 · 1 comment
Open

Comments

@timoachtelik
Copy link

timoachtelik commented Feb 23, 2024

What happened?

Bug Description:

I am encountering an issue with the Ngx Editor where it fails to register input values after navigating away and then returning to the page where the editor is located.

Steps to reproduce:

Load the page with the Ngx Editor.
Enter values into the editor. At this point, the form correctly captures these values.
Navigate away from the page.
Return to the page with the Ngx Editor.

Expected behavior:
The editor should continue to register input values and the form should capture these values correctly.

Actual behavior:

The input value is not registered in the FormControl. Additionally, the placeholder text does not disappear when entering new text. Instead, the input value is written inside the placeholder in the DOM, giving the impression that the form is not fully functional.

This issue occurs consistently after the first navigation away from the page. The initial load of the page sometimes present this problem.

Environment:
Ngx Editor version: 16.0.1
@nx/angular: 16.9.1,
Node.js version: 18.18.0

I am looking for a solution or workaround to this issue. Any help would be greatly appreciated.

Version

16.0.1

Angular Version

16.9.1

What browsers are you seeing the problem on?

No response

Link to reproduce

No response

Relevant log output

No response

Willing to submit a PR?

None

@hiepxanh
Copy link

hiepxanh commented Apr 7, 2024

look like change detection issue, you can settimeout then use changeDetectRef.detectChanges()

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

No branches or pull requests

2 participants