lentschi / ngx-ellipsis

Multiline text with ellipsis for angular 9+
MIT License
96 stars 22 forks source link

Fixes [ellipsis-content] not detecting an empty string as a change #5

Closed NRaf closed 6 years ago

NRaf commented 6 years ago

I had an issue with [ellipsis-content] not detecting a change when the changed value is empty.

My specific use case is a form field with a live preview. The live preview is using ngx-ellipsis. If I clear the contents of the form field, the preview doesn't get updated (due to an empty string being falsy in JavaScript).