From 86c4099c106f6ff1007c731f74269d39c7fa31ef Mon Sep 17 00:00:00 2001
From: Alberto Luna <alberto.luna.95@gmail.com>
Date: Tue, 28 Jan 2020 08:44:07 +0100
Subject: [PATCH] Fix default value for web components prop table docs

As `custom-elements.json` format changed we have to
support `default` to get the default value.
This change still keeps compatibility with `defaultValue`.
---
 addons/docs/src/frameworks/web-components/config.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/addons/docs/src/frameworks/web-components/config.js b/addons/docs/src/frameworks/web-components/config.js
index c1c34a565a20..883c269e4e9f 100644
--- a/addons/docs/src/frameworks/web-components/config.js
+++ b/addons/docs/src/frameworks/web-components/config.js
@@ -11,7 +11,7 @@ function mapData(data) {
     type: { summary: item.type },
     required: '',
     description: item.description,
-    defaultValue: { summary: item.defaultValue },
+    defaultValue: { summary: item.default !== undefined ? item.default : item.defaultValue },
   }));
 }