fix passing attributes to widget in FormInputElement