Describe the bug
After adding an error message (non-inline) to a dropdown using addError(), then calling removeError(), the error icon is not removed.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Dropdown error message and icon are removed.
Version
Screenshots

Additional Info
This has caused a customer incident, links to LSF-40959.
Do you know if this regressed from one version to another?
It worked in our July release, but that's about all I know. We were pre-4.11 at that time, but we didn't update until around September. So I'm not really positive where it broke.
Ok, I also tried to see if this regressed but noticed i cannot reproduce. Go to any of these pages:
https://master-enterprise.demo.design.infor.com/components/validation/test-legacy-tooltip.html
https://4140-enterprise.demo.design.infor.com/components/validation/test-legacy-tooltip.html
https://4130-enterprise.demo.design.infor.com/components/validation/test-legacy-tooltip.html
https://4120-enterprise.demo.design.infor.com/components/validation/test-legacy-tooltip.html
https://4110-enterprise.demo.design.infor.com/components/validation/test-legacy-tooltip.html
$('select.dropdown').removeError().addError({ message: 'Dropdown error.', inline: false });$('select.dropdown').removeError();Then it does seem to work ok in all those versions?
It looks like it's reproducible here: https://master-enterprise.demo.design.infor.com/components/validation/example-multiple-errors.html
The difference between those two pages appears to be data-error-type="tooltip" on the select.
Ok, Thanks. I tested this from 490-4140 it its not removing. The item - so issue accepted.
I looks like this was broken with revision 58d0c6a.
I think that line 1018 of validator.js should be reading field.attr(data-${rule.type}-type), not loc.attr(data-${rule.type}-type), since that data attribute gets applied to the generated field, not the original element.
@tmcconechy Can this be prioritized? We have a couple customers reporting this issue.
Here is a fix - seems like just as you said @awbuboltz https://github.com/infor-design/enterprise/pull/1584
Looks good Tim, thanks!
http://localhost:4000/components/validation/example-multiple-errors.html
Passed QA testing on all browsers, moving to Done.