fix TextFieldWithHistory rendering on mac