Some analyzers or transformers are misconfigured in .deepsource.toml
. Please refer to the docs.
autoFocus
prop is not used on elements JS-0757293 </Button>
294 <Button
295 color="primary"
296 autoFocus297 onClick={() => setShowConfirmation(false)}
298 >
299 No
The issue enforces that the autoFocus
prop is not used on elements because autofocusing elements can cause usability issues for sighted and non-sighted users alike.
<div autoFocus />
<div autoFocus="true" />
<div autoFocus="false" />
<div autoFocus={undefined} />
<div />