You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This line errors out when the input you've selected with a keypress does not have a corresponding label associated with it. See screenshot:
functionkeypressFunction(evt){evt=evt||window.event;varcharCode=evt.keyCode||evt.which;varcharStr=String.fromCharCode(charCode);if(!evt.target.labels){return;}varlabel=evt.target.labels[0].textContent;// this line errors out when undefined.textContent is accessedvartext=(evt.target.value+charStr).trim().replace("'","\\\'");varaction="fill_in";vartarget=evt.target.labels[0].textContent;varoptions=", with: '"+text+"'";
Thoughts? A javascript warning that it doesn't exist would be a decent solution tbh - I only figured this out after I had the console open to figure out why the commands weren't persisting when I invoked flush in the terminal.
The text was updated successfully, but these errors were encountered:
This line errors out when the input you've selected with a keypress does not have a corresponding label associated with it. See screenshot:
https://github.com/bullet-train-co/magic_test/blame/14747324998293e189956c1af15dc07d1e96686b/app/views/magic_test/_javascript_helpers.html#L44
Thoughts? A javascript warning that it doesn't exist would be a decent solution tbh - I only figured this out after I had the console open to figure out why the commands weren't persisting when I invoked
flush
in the terminal.The text was updated successfully, but these errors were encountered: