Skip to content

getContent() not working #4

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

Closed
FernandoLomazzi opened this issue Oct 16, 2024 · 0 comments
Closed

getContent() not working #4

FernandoLomazzi opened this issue Oct 16, 2024 · 0 comments

Comments

@FernandoLomazzi
Copy link

Describe the bug

When I call getContent() after creating a MarkdownEditor, I receive an IllegalArgumentException "argument 'content' is null." Additionally, if I set the initial content of the component and then make changes in the text area, calling getContent() does not reflect the updated value.

Expected behavior

Empty string for the first case, changed content for the second one.

Minimal reproducible example

MarkdownEditor test = new MarkdownEditor();
System.out.println(test.getContent());

Add-on Version

1.0.0

Vaadin Version

24.4.10

Additional information

No response

@github-project-automation github-project-automation bot moved this to Inbox (needs triage) in Flowing Code Addons Oct 16, 2024
mlopezFC added a commit that referenced this issue Oct 18, 2024
Improve content state management by adding a state change listener and
storing the state as an internal variable
Fixes #4
@github-project-automation github-project-automation bot moved this from Inbox (needs triage) to Done in Flowing Code Addons Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant