fixed unbound ``children`` in ``_toggle_dropdown``

commit efe362c somehow deleted the definition of ``children``. This adds it back.