Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialCauli Tomaz
12,362 PointsCannot erase from console challenges
Well, the problem is, when I hit backspace to erase something I wrote in the challenge console, Google Chrome goes back one page. And I can't use the Delete key either (it just doesn't work).
I think this should be disabled by default in all challenge tasks with e.preventDefault(), but it is just a suggestion.
But this doesn't happen in other challenges (they probably use textarea, not text input).
Thanks guys!
**** EDIT ****
Well, I see. For these Git console inputs, treehouse uses a custom implementation for an Input form.
It is just a DIV (probably to place a blinking cursor), and that is why the browser thinks I am not "inputting" something, and performs the BACK action.
**** END EDIT ***
2 Answers
Cauli Tomaz
12,362 PointsHmm, just retried and it really seems to be working.
What probably happened is that I clicked outside the black box for some reason and then typed backspace, losing my progress.
For instance, when I write a wrong command and it says "Try Again", my first instinct is to erase what is written in the results panel for some reason, by clicking on it and backspacing.
Thanks for your attention!
Stone Preston
42,016 Pointshmm thats strange. I just tried this one and was able to type stuff in and backspace to erase it when using chrome. can you link the specific challenge that did this?