Fixed toggle active behaviour when using context

When update event was triggered within context it was firing multiple times, thus cancelling itself. This fixes it. Credits to @remybach :+1: