question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Back-button targets preview-page in coding challenge

See original GitHub issue

Describe your problem and how to reproduce it:

  1. Go here.
  2. Create the requested form.
  3. Enter something in that text field and press enter.
  4. A Thank you!-page appears in the preview section. (see first screenshot)

Everything is great up until now. Here comes the problem.

  1. The user can now press BACK in the browser (or on the Mouse or via a keyboard shortcut). This, however doesn’t go to the previous full page. Instead, it messes up the preview panel. (see second screenshot)
  2. The user can then repeat steps 1-6 as often as he wants. It’s kind of janky and doesn’t seem like it should exist. (see third screenshot)

Add a Link to the page with the problem: https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/create-a-form-element

Tell us about your browser and operating system:

  • Browser Name: Firefox
  • Browser Version: 88.0 (64bit)
  • Operating System: Linux (Mint)

If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box): freeWeirdCodeBehaviour0

freeWeirdCodeBehaviour1

freeWeirdCodeBehaviour2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Glitchy-Toziercommented, May 16, 2021

@Nirajn2311 I don’t know the answer to your question but that sounds like a horrible thing to do.

As a student, seeing my form actually do something made me very happy.

1reaction
Sembaukecommented, May 16, 2021

Hey @ShaunSHamilton ,

After struggling to solve this issue with attributes the iframe provides, I made an example project that seems to work as it should. https://intrepidgiddyinfo.semboot699.repl.co/

So my conclusion here is that it may not be the iframes fault but somewhere else in the code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Execute action when back bar button of ... - Stack Overflow
If that property is true, it means the View Controller is disappearing because it's being removed (popped). Should look something like: override func ......
Read more >
4 Design Patterns That Violate “Back” Button UX Expectations
The short version: users expect the “Back” button to take them back to what they perceived to be their previous page. The notion...
Read more >
How to customize a view controller's back button on a ...
How to customize a view controller's back button on a navigation bar: backBarButtonItem. Swift version: 5.6.
Read more >
WebView and Android back button navigation - LogRocket Blog
Let's explore some solutions to common problems that Android developers often encounter when using WebView, such as back button navigation.
Read more >
connect not picking up initial values of input elements ... - GitHub
Scenario: We have a page with radio buttons; The user selects a radio button; The user submits the form; The user uses the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found