Skip to content

Commit 7e26d32

Browse files
committed
fix: add ssr: false to examples with hydration issues
Disable SSR for examples that have client/server mismatches: - colorpicker: all examples (paste/eyedropper functionality) - mask: overlay example (DOM fragment mismatch) - slider: kitchen-sink and scaling-functions (float precision) - taglist: pagination-option-loader (async data loading)
1 parent 1f03baf commit 7e26d32

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

3.inputs/colorpicker.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The `colorpicker` input is fully keyboard navigable and ships with accessible ma
2222
---
2323
name: "Color input"
2424
file: "_examples/colorpicker/intro.vue"
25+
ssr: false
2526
---
2627
::
2728

@@ -35,6 +36,7 @@ The `colorpicker` supports formats in `Hex`, `HSLA` and `RGBA` formats. You can
3536
name: "Color input"
3637
file: "_examples/colorpicker/format.vue"
3738
minHeight: 500
39+
ssr: false
3840
---
3941
::
4042

@@ -47,6 +49,7 @@ There may be times where you wish to show one format to users as a default but r
4749
name: "Color input"
4850
file: "_examples/colorpicker/value-format.vue"
4951
minHeight: 400
52+
ssr: false
5053
---
5154
::
5255

@@ -62,6 +65,7 @@ Here is a simple set of swatches using the `options` prop and providing it with
6265
---
6366
name: "Color input"
6467
file: "_examples/colorpicker/simple-swatches.vue"
68+
ssr: false
6569
---
6670
::
6771

@@ -73,6 +77,7 @@ The `colorpicker` also supports grouped `options`. This allows you to create set
7377
---
7478
name: "Color input"
7579
file: "_examples/colorpicker/grouped-swatches.vue"
80+
ssr: false
7681
---
7782
::
7883

@@ -86,6 +91,7 @@ When showing only swatches in pop-over mode (the default) adding the `close-on-s
8691
---
8792
name: "Color input"
8893
file: "_examples/colorpicker/swatch-only.vue"
94+
ssr: false
8995
---
9096
::
9197

@@ -97,6 +103,7 @@ If your provided swatches via the `options` prop have `label`s then you can call
97103
---
98104
name: "Color input"
99105
file: "_examples/colorpicker/input-swatch-name.vue"
106+
ssr: false
100107
---
101108
::
102109

@@ -108,6 +115,7 @@ The `colorpicker` input supports the browser-native [EyeDropper API](https://dev
108115
---
109116
name: "Color input"
110117
file: "_examples/colorpicker/eye-dropper.vue"
118+
ssr: false
111119
---
112120
::
113121

@@ -122,6 +130,7 @@ You can disable the ability to paste a value by setting the `allow-paste` prop t
122130
name: "Color input"
123131
file: "_examples/colorpicker/paste.vue"
124132
min-height: 650
133+
ssr: false
125134
---
126135
::
127136

3.inputs/mask.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ The default genesis theme automatically supports the overlay and applies light g
389389
---
390390
name: "Mask input - overlay"
391391
file: "_examples/mask/overlay.vue"
392+
ssr: false
392393
---
393394
::
394395

3.inputs/slider.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,9 @@ The `scaling-function` prop accepts 3 values:
222222
name: "Scaling functions"
223223
file: [
224224
"_examples/slider/scaling-functions.vue",
225-
"_examples/slider/scaling-functions.js"
225+
"_examples/slider/scaling-utils.js"
226226
]
227+
ssr: false
227228
---
228229
::
229230

@@ -271,6 +272,7 @@ name: "Kitchen Sink"
271272
file: [
272273
"_examples/slider/kitchen-sink.vue",
273274
]
275+
ssr: false
274276
---
275277
::
276278

3.inputs/taglist.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ FormKit's taglist input also provides an `optionLoader` prop that allows you to
113113
name: "Taglist"
114114
min-height: 550
115115
file: "_examples/taglist/taglist-pagination-option-loader.vue"
116+
ssr: false
116117
---
117118
::
118119

0 commit comments

Comments
 (0)