Open connollykeyjoint opened 6 years ago
How did You check the value change? Output to the DOM? Have you logged smth.?
What I mean is: Maybe You just have to kick start a new change detection cycle using ChangeDetectorRef.detectChanges()
...
Yes, I logged to the console.
I can see the change when the keyboard is opened using the code:
get keyboardVisible(): boolean {
console.log('Opened? ' + this._keyboardService.isOpened);
return this._keyboardService.isOpened;
}
But the value does not change to false after the keyboard has exited until there is another DOM i.e. button clicked.
I have tried your solution regarding ChangeDetectorRef.detectChanges()
. This does trigger the change but I have to set a timeout event but of course, the best solution would be to have the event triggered once the keyboard has finished exiting.
Upon research of the code, it appears that you are calling the change event on enter()
but not on exit()
.
I am attempting to listen to the isOpen variable as per the demo code
But the value does not appear to change when the keyboard has finished exiting but when the next DOM event happens after the exit.