tinuzz/leaflet-messagebox

Timeout not working

9SL9 opened this issue · 2 comments

9SL9 commented

If I set a timeout of 10 seconds and call box.show within that 10 second timeout the timeout is not reset for each call. e.g. If I call box.show, then after 5 seconds call it again the second box will only show for 5 seconds instead of the full 10

Ah, this is a use case I hadn't considered. I'll fix it by cancelling any existing timeouts on a call to show(). Just need to find some time for coding and testing.

Fixed in 6466fbd