sanitizeRestProps missing or intentional?
I am using third party component (ReactS3Uploader) inside of formTab. When initiated it throws this warning there:
Warning: React does not recognize the basePathprop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercasebasepath instead. If you accidentally passed it from a parent component, remove it from the DOM element.
I am thinking the reason is that formInput doesn't sanitize the props and allows basePath to be passed further on.
Not sure if it is a bug or it is like that intentionally as per design (basePath is needed by other input fields?) but when I change this line to have ...sanitizeRestProps(rest) instead of just ...rest the issue goes away.
Thanks for your question :) It's by design indeed. Some inputs and fields actually need those props (Reference inputs for example)