afterStateUpdatedJS working differently after upgrade to v5 - Filament