dsuryd/dotNetify-Elements

Uncaught (in promise) TypeError: t.dom.focus is not a function

tjackadams opened this issue · 2 comments

Bit of an odd one. I can successfully submit the form, however when i return to the form in the same browser, it throws the above error. Any ideas?

here is the error from chrome console.

Uncaught (in promise) TypeError: t.dom.focus is not a function
at t.value (Form.js:344)
at Form.js:351
value @ Form.js:344
(anonymous) @ Form.js:351
Promise.then (async)
r.handleClick @ Button.js:221
(anonymous) @ react-dom.production.min.js:49
d @ react-dom.production.min.js:69
(anonymous) @ react-dom.production.min.js:73
S @ react-dom.production.min.js:140
P @ react-dom.production.min.js:169
T @ react-dom.production.min.js:158
A @ react-dom.production.min.js:232
_n @ react-dom.production.min.js:1718
Ru @ react-dom.production.min.js:5990
Le @ react-dom.production.min.js:660
Pn @ react-dom.production.min.js:1760
(anonymous) @ react-dom.production.min.js:6017
t.unstable_runWithPriority @ scheduler.production.min.js:274
Iu @ react-dom.production.min.js:6016
On @ react-dom.production.min.js:1737

Which references this function

setInputFocus(inputId) {
const input = this.inputs.filter(input => input.propId === inputId).shift();
if (input && input.dom) input.dom.focus();
}

Because this error is thrown, i am unable to submit the form.

Could you provide a minimal, runnable app that demonstrates this issue?

Closing this due to inactivity. Feel free to reopen if the issue persists.