Open dominoweir opened 1 year ago
I think you can use autoFocus={false}
as a workaround, it should override it since the spread of all props happens after setting the autofocus.
// from the implementation
<textarea autoFocus ref={this.setInputRef} {...props} />
I think you can use autoFocus={false} as a workaround
Thank you, this workaround did the trick for us!
Steps to reproduce:
Expected behaviour:
The text area is rendered but does not automatically focus. In my use case, this is desired.
Observed behaviour:
The text area auto focuses when rendered. If the text area is not currently in view, the page scrolls until it is visible.
Workaround:
None.
This issue is already solved by #682. Can we please get this PR approved and a new release rolled out?