Skip to content

Commit e64fcc2

Browse files
committed
Merge branch 'main' of https://github.com/coreui/coreui-vue
2 parents 6ca1ec9 + 3086bf8 commit e64fcc2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/docs/components/dropdown.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ And with `<a>` elements:
6565
The best part is you can do this with any button variant, too:
6666

6767
::: demo
68-
<template v-for="(item) in ['primary', 'secondary', 'success', 'info', 'warning', 'danger']">
68+
<template v-for="(item) in ['primary', 'secondary', 'success', 'info', 'warning', 'danger']" :key="item">
6969
<CDropdown :color="item" :togglerText="item" variant="btn-group">
7070
<CDropdownToggle :color="item">{{item}}</CDropdownToggle>
7171
<CDropdownMenu>
@@ -77,7 +77,7 @@ The best part is you can do this with any button variant, too:
7777
</template>
7878
:::
7979
```vue
80-
<template v-for="(item) in ['primary', 'secondary', 'success', 'info', 'warning', 'danger']">
80+
<template v-for="(item) in ['primary', 'secondary', 'success', 'info', 'warning', 'danger']" :key="item">
8181
<CDropdown :color="item" :togglerText="item" variant="btn-group">
8282
<CDropdownToggle :color="item">{{togglerText}}</CDropdownToggle>
8383
<CDropdownMenu>
@@ -96,7 +96,7 @@ Similarly, create split button dropdowns with virtually the same markup as singl
9696
We use this extra class to reduce the horizontal `padding` on either side of the caret by 25% and remove the `margin-left` that's attached for normal button dropdowns. Those additional changes hold the caret centered in the split button and implement a more properly sized hit area next to the main button.
9797

9898
::: demo
99-
<template v-for="(item) in ['primary', 'secondary', 'success', 'info', 'warning', 'danger']">
99+
<template v-for="(item) in ['primary', 'secondary', 'success', 'info', 'warning', 'danger']" :key="item">
100100
<CDropdown :color="item" :togglerText="item" variant="btn-group">
101101
<CButton :color="item">{{ item }}</CButton>
102102
<CDropdownToggle :color="item" split>{{item}}</CDropdownToggle>
@@ -109,7 +109,7 @@ We use this extra class to reduce the horizontal `padding` on either side of the
109109
</template>
110110
:::
111111
```vue
112-
<template v-for="(item) in ['primary', 'secondary', 'success', 'info', 'warning', 'danger']">
112+
<template v-for="(item) in ['primary', 'secondary', 'success', 'info', 'warning', 'danger']" :key="item">
113113
<CDropdown :color="item" :togglerText="item" variant="btn-group">
114114
<CButton :color="item">{{ item }}</CButton>
115115
<CDropdownToggle :color="item" split>{{item}}</CDropdownToggle>
@@ -724,4 +724,4 @@ Variables for the CSS-based carets that indicate a dropdown's interactivity:
724724

725725
!!!include(./api/dropdown/CDropdownMenu.api.md)!!!
726726

727-
!!!include(./api/dropdown/CDropdownToggle.api.md)!!!
727+
!!!include(./api/dropdown/CDropdownToggle.api.md)!!!

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy