pglejzer / timepicker-ui

timepicker-ui is an easy library with timepicker. Fully wrote with TypeScript. This library is based on Material Design from Google.
MIT License
62 stars 18 forks source link

'accept' event doesn't trigger when switching modes #26

Open benzdouglas opened 1 year ago

benzdouglas commented 1 year ago

Hi there! I've got the library running in Angular 14 (wasn't too challenging) but it seems that the 'accept' event is not triggering when pressing OK after switching the mobile mode using the switch icon (either direction). Possibly something to do with destroying and initializing a new instance of the element - would that lose any event listeners tied to the original element?