react-spectrum
1b939c71 - RSP-1837/RSP-1838 Fix console warnings regarding invalid DOM props (#668)

Commit
5 years ago
RSP-1837/RSP-1838 Fix console warnings regarding invalid DOM props (#668) * RSP-1837/RSP-1838 Fix console warnings regarding invalid DOM props ScrollView passes React prop focusedKey as part of {...otherProps} spread to DOM element. We should use filter out focusedKey when declaring variables so only valid props are added to the rendered DOM element. Popover and Modal pass React props shouldCloseOnBlur and isDismissable as part of {...otherProps} spread to DOM element. We should use filter out shouldCloseOnBlur and isDismissable when declaring variables, so only valid props are added to the rendered DOM element. * RSP-1837 Allow unused variables * RSP-1837 suppress lint error * Don't send focusedKey to ScrollView * Remove shouldCloseOnBlur from Modal, add to Tray Co-authored-by: Devon Govett <devongovett@gmail.com>
Author
Michael Jordan
Parents
Loading