One end normally is held in position on the filter mount. But the way they have done it is in reverse and a pain in the butt when you need to change the filter. They have fixed the wire from the filter to the bracket from factory? So when you go to remove the filter assembly to change the filter you have to get long nose pliers to remove the plug from the bracket them disconnect it. So if yours is hanging free leave it like that. It makes life easier in the long run.
Cheers.