Suggestion: update height to 0 when it closes
davecoffin opened this issue · comments
This is a helpful plugin, but it would be awesome if an event was thrown when the keyboard height changes to 0!
All height changes will trigger SoftKeyboardCallback. You can check 0 height there. Does it not work for you?
No, dismissing the keyboard doesn’t trigger the height change event. I would think it should trigger a change event and the result be 0, but no event is fired.
I cannot reproduce this bug. I confirmed I get 0-height in Android.
Issue is on iOS.
@oguzhanbolme Just follow the instructions:
https://github.com/liuy97/nativescript-soft-keyboard/tree/master/packages/soft-keyboard
registerSoftKeyboardCallback((h) => console.log(h))
h is the height.
@davecoffin I've just created a PR that fixes this.
You rock!!
@davecoffin does it work for you?
@achancu , thanks.
@davecoffin , I have confirmed that zero height is got. I add a sample in demo-angular.