Junior Marques

Results 16 comments of Junior Marques

At ReactJs I was able to solve this by creating a function that makes navigation for me! **I did the following to make it work without the error message:** _I...

I solved it that way: ``` registerField({ name: fieldName, ref: inputRef.current, path: "value", setValue(ref, value) { ref.setInputValue(value ? value : ""); }, clearValue(ref) { ref.setInputValue(""); }, }); ``` The setValue...

> Hello! > > I have the same problem. > > I tried the solution cited by @jrmarqueshd , but it didn't work for me Hello @lucasrisatto, are you using...

> > > Hello! > > > I have the same problem. > > > I tried the solution cited by @jrmarqueshd , but it didn't work for me >...

> > > > > Hello! > > > > > I have the same problem. > > > > > I tried the solution cited by @jrmarqueshd , but...

@FeMaffezzolli try use it: ``` useEffect(() => { registerField({ name: fieldName, ref: inputRef.current, path: 'value', setValue(ref: any, value: string) { if (!value) return ref.setInputValue(""); ref.setInputValue(value); }, clearValue(ref: any) { ref.setInputValue('');...

For me it worked simply by adding `autoFocus` directly to the , but you can also test it this way: `this.inputRef.getInputDOMNode().focus();`. Credits by @duhwcarvalho

[[002] - Desafio Básico](https://github.com/jrmarqueshd/loja-fone/commits) [[002] - Desafio Intermediário](https://github.com/jrmarqueshd/loja-fone/commits) [[002] - Desafio Avançado](https://github.com/jrmarqueshd/loja-fone/commits)

[[002] - Desafio Básico [002] - Desafio Intermediário [002] - Desafio Avançado](https://github.com/jrmarqueshd/loja-fone/commit/e42560bacfe66d1a0c408dc08f8c9e3e67b34410)

Eu uso alguns diferentes que me dão bastante produção também: - [Live Server](https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer) - [Better Comments](https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments) - [Code Runner](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner)