The "depends" directive does not work for me inside a widget

It is a bug.