Skip to content

Commit

Permalink
fix: code snippet validator
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-chase committed Apr 12, 2022
1 parent e361f55 commit ad93c93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
name: 'CvCodeSnippetSkeleton',
mixins: [carbonPrefixMixin],
props: {
kind: { type: String, default: 'oneline' },
kind: { type: String, default: 'oneline', validator: val => ['multiline', 'oneline'].includes(val) },
},
computed: {
multi() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<!-- textarea cannot be fully hidden for clipboard to work -->
<textarea
class="cv-code-snippet__clippy"
style="position: absolute; left: -9999px; max-width: 0; opacity: 0; overflow: hidden;"
style="position: absolute; left: -9999px; max-width: 0; opacity: 0; overflow: hidden"
aria-hidden="true"
ref="clippy"
></textarea>
Expand Down

0 comments on commit ad93c93

Please sign in to comment.