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.

Hidden bug for the 'Order' button

See original GitHub issue

Hello,

There is this line of code in index.razor:

<a href="checkout" class="btn btn-warning" disabled="@(Order.Pizzas.Count == 0)">

It does not work (even there is no display to check it) when there is no ordered pizza. I replaced it with the following line of code :

<a href="checkout" class="@ButtonCssClass">
...
@code
{
private string ButtonCssClass => 
OrderState.Order.Pizzas.Count == 0 ? "btn btn-warning disabled" : "btn btn-warning";
...
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
boukenkacommented, Jan 17, 2020

Thank you @yopez83 😄 I am closing this issue if this is Ok.

0reactions
yopez83commented, Jan 17, 2020

@boukenka I have submitted a PR with some fixes including the one we discussed here.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Push Button / Hidden Cameras / Surveillance & Security ...
KOLAICE Hidden Camera Detectors Anti Spy Detector GPS Tracker Detector Infrared Camera Scanner Bug Detector Listening.
Read more >
Any update on the hide button "bug"? : r/help
moving the mouse button outside the post/thread area then pressing h hides posts. no idea this is new or it if it was...
Read more >
Multiple Action Buttons Hidden and label changed to "..."
I would like to have the ability to order the buttons in amongst the other details content, rather than being forced to have...
Read more >
High-Tech Listening Devices Hidden In 8 Surprisingly ...
Here are just 8 of the latest high-tech listening bug disguises, and some may surprise you: 1. Credit Card. By far the most...
Read more >
A Bashful Button Worth $8 Million
I grabbed my iPad and passed it around to build an order. ... I could figure out how much Olive Garden's checkout button...
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