Changed logic for adding the 'move handle' for input components so it doesn't rely on first-level children.