Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit d61655f

Browse files
codebender828freality
authored andcommitted
refactor: validate config prop values
2 parents fe36224 + 1779c45 commit d61655f

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.all-contributorsrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,15 @@
164164
"contributions": [
165165
"code"
166166
]
167+
},
168+
{
169+
"login": "gbschalch",
170+
"name": "Guilherme Schalch",
171+
"avatar_url": "https://avatars3.githubusercontent.com/u/13435327?v=4",
172+
"profile": "http://www.linkedin.com/in/schalch",
173+
"contributions": [
174+
"code"
175+
]
167176
}
168177
],
169178
"contributorsPerLine": 7,

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
212212
<td align="center"><a href="https://github.com/Anmol270900"><img src="https://avatars2.githubusercontent.com/u/43845658?v=4" width="50px;" alt=""/><br /><sub><b>Anmol</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=Anmol270900" title="Documentation">📖</a></td>
213213
<td align="center"><a href="https://github.com/vishnumohanrk"><img src="https://avatars3.githubusercontent.com/u/51525368?v=4" width="50px;" alt=""/><br /><sub><b>Vishnumohan R K</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=vishnumohanrk" title="Documentation">📖</a></td>
214214
<td align="center"><a href="https://github.com/freality"><img src="https://avatars3.githubusercontent.com/u/15808?v=4" width="50px;" alt=""/><br /><sub><b>Ken Love</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=freality" title="Code">💻</a></td>
215+
<td align="center"><a href="http://www.linkedin.com/in/schalch"><img src="https://avatars3.githubusercontent.com/u/13435327?v=4" width="50px;" alt=""/><br /><sub><b>Guilherme Schalch</b></sub></a><br /><a href="https://github.com/chakra-ui/chakra-ui-vue/commits?author=gbschalch" title="Code">💻</a></td>
215216
</tr>
216217
</table>
217218

packages/chakra-ui-core/src/CReset/CReset.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ const CReset = {
5151
}
5252
},
5353
props: {
54-
config: Function
54+
config: {
55+
type: Function,
56+
validator (value) {
57+
return typeof value === 'function'
58+
}
59+
}
5560
},
5661
created () {
5762
const { color, bg, borderColor, placeholderColor } = this.styleConfig[this.colorMode]

0 commit comments

Comments
 (0)