Created
December 18, 2017 18:52
-
-
Save omarstreak/fbedd5a70837e3e8751008b49b466cb7 to your computer and use it in GitHub Desktop.
Kefir cursor handling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Kefir.merge([ | |
Kefir.fromEvents(input, 'keyup'), | |
Kefir.fromEvents(input, 'input'), | |
Kefir.fromEvents(input, 'click'), | |
Kefir.fromEvents(input, 'focus') | |
]) | |
.takeUntilBy(elementDestroyedObservable) | |
.debounce(100) | |
.onValue(() => /* do some stuff */) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment