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

Todomvc example: How to remove task if it becomes empty? #22

Open
gnois opened this issue Jan 12, 2016 · 1 comment
Open

Todomvc example: How to remove task if it becomes empty? #22

gnois opened this issue Jan 12, 2016 · 1 comment

Comments

@gnois
Copy link

gnois commented Jan 12, 2016

Hi @paldepind, thanks for these awesome examples. Newbie here trying to learn by doing.

I am trying to remove the task if it has become empty after editing, as seen in the screenshot below.
I guess this requires pushing a Remove action into the Tasklist stream from the Task's ChangeTitle action.
However, I do not know how to achieve this using union-type, flyd and ramda.

animation

Appreciate any guidance or even code examples. Thanks again.

@gnois
Copy link
Author

gnois commented Jan 12, 2016

Btw, when editing in the middle of the text, the caret will jump to the end of the text for each key press, seen below:
animation2

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

1 participant