Drop the support of show property from the modal plugin.
When creating the new modal instance in v5, the `show` property does not work anymore, so instead of fixing the behavior just removing it permanently to keep the consistency between all the plugins. (All other plugins require the `show()` method to be called on the instances to be shown)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
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}`
}
data[config](relatedTarget)
- } else if (_config.show) {
- data.show(relatedTarget)
}
})
}
<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>