aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/src/modal.js8
-rw-r--r--site/content/docs/5.0/components/modal.md6
2 files changed, 2 insertions, 12 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index db8345fac..fdca48213 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -37,15 +37,13 @@ const ESCAPE_KEY = 'Escape'
const Default = {
backdrop: true,
keyboard: true,
- focus: true,
- show: true
+ focus: true
}
const DefaultType = {
backdrop: '(boolean|string)',
keyboard: 'boolean',
- focus: 'boolean',
- show: 'boolean'
+ focus: 'boolean'
}
const EVENT_HIDE = `hide${EVENT_KEY}`
@@ -557,8 +555,6 @@ class Modal extends BaseComponent {
}
data[config](relatedTarget)
- } else if (_config.show) {
- data.show(relatedTarget)
}
})
}
diff --git a/site/content/docs/5.0/components/modal.md b/site/content/docs/5.0/components/modal.md
index 5bd116c8e..36dc3b548 100644
--- a/site/content/docs/5.0/components/modal.md
+++ b/site/content/docs/5.0/components/modal.md
@@ -877,12 +877,6 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
<td><code>true</code></td>
<td>Puts the focus on the modal when initialized.</td>
</tr>
- <tr>
- <td><code>show</code></td>
- <td>boolean</td>
- <td><code>true</code></td>
- <td>Shows the modal when initialized.</td>
- </tr>
</tbody>
</table>