Skip to content
New issue

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

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

Already on GitHub? # to your account

Summernote is not showing when Model Value is null/empty #8

Open
bastisk opened this issue Mar 16, 2017 · 4 comments
Open

Summernote is not showing when Model Value is null/empty #8

bastisk opened this issue Mar 16, 2017 · 4 comments

Comments

@bastisk
Copy link

bastisk commented Mar 16, 2017

Hi there,
I noticed that when the model which is assigned to the directive is null or even an empty string like "" - the summernote will not be rendered. I think this behavior does not make sense as the text can be empty (e.g. if summernote is used in an input form).

Let me know if you need any more details on this to understand the problem.

@sascha1337
Copy link

Same here - please fix !

@BrianWClausen
Copy link

I am having the same issue. Everything else seems to be working really well.

@abhinashtripathy
Copy link

Did anyone find any solution or work around to this issue??

@segvan
Copy link

segvan commented Mar 16, 2018

yes there is a bug in writeValue(value: any) method. Instead of if (value) { ... } should be if (value !== 'undefined' && value !== null) { ... }

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

No branches or pull requests

5 participants