Permalink
Browse files

fix(embed): Validate type prop

  • Loading branch information...
tmorehouse committed Sep 17, 2017
1 parent bf14608 commit 993116b9609f109f9d3fa0c04782ee188477cb47
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/components/embed.js
@@ -1,9 +1,11 @@
import { mergeData } from "../utils";
import { arrayIncludes } from "../utils/array";
export const props = {
type: {
type: String,
default: "iframe"
default: "iframe",
validator: str => arrayIncludes(["iframe", "embed", "video", "object", "img", "b-img", "b-img-lazy"], str)
},
tag: {
type: String,

0 comments on commit 993116b

Please sign in to comment.