Skip to content

Commit 8af5786

Browse files
authored
Fix dropdown docs typos (#1262)
Fixed typos on the dropdown docs page - dropdown description, 'Text' section description and 'Forms' @code block.
1 parent d0d4f72 commit 8af5786

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/docs/05-components/dropdown.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Blazor Dropdown Component
3-
description: Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They are toggled by clicking, not by hovering; this is an intentional design decision'by bootstrap.
3+
description: Dropdowns are toggleable, contextual overlays for displaying lists of links and more. They are toggled by clicking, not by hovering; this is an intentional design decision by bootstrap.
44
image: https://i.imgur.com/beAr31J.png
55

66
sidebar_label: Dropdown
@@ -12,7 +12,7 @@ import CarbonAd from '/carbon-ad.mdx'
1212
# Blazor Dropdown
1313

1414
Dropdowns are toggleable, contextual overlays for displaying lists of links and more.
15-
They are toggled by clicking, not by hovering; this is an intentional design decision'by bootstrap.
15+
They are toggled by clicking, not by hovering; this is an intentional design decision by bootstrap.
1616

1717
<CarbonAd />
1818

@@ -541,7 +541,7 @@ Separate groups of related menu items with a divider.
541541

542542
### Text
543543

544-
Place any freeform text within a dropdown menu with text and use spacing utilities. Note that youll likely need additional sizing styles to constrain the menu width.
544+
Place any freeform text within a dropdown menu with text and use spacing utilities. Note that you'll likely need additional sizing styles to constrain the menu width.
545545

546546
<img src="https://i.imgur.com/2G0ozU0.png" alt="Blazor Bootstrap: Dropdown Component - Text" />
547547

@@ -628,23 +628,23 @@ Put a form within a dropdown menu, or make it into a dropdown menu, and use marg
628628

629629
protected override void OnParametersSet()
630630
{
631-
CalculateToatl();
631+
CalculateTotal();
632632
base.OnParametersSet();
633633
}
634634

635635
private void PriceChanged(decimal? value)
636636
{
637637
invoice.Price = value;
638-
CalculateToatl();
638+
CalculateTotal();
639639
}
640640

641641
private void DiscountChanged(decimal? value)
642642
{
643643
invoice.Discount = value;
644-
CalculateToatl();
644+
CalculateTotal();
645645
}
646646

647-
private void CalculateToatl()
647+
private void CalculateTotal()
648648
{
649649
var price = invoice.Price.HasValue ? invoice.Price.Value : 0;
650650
var discount = invoice.Discount.HasValue ? invoice.Discount.Value : 0;

0 commit comments

Comments
 (0)