Support keyboard
option of Offcanvas
#561
Labels
Priority: Low
Bug, issue, or pull request is a P3
Severity: Low
Bug or issue is of low severity
Type: Feature
A new feature or functionality
Type: Proposal
Issue or pull requests contains a new proposal
The current implementation of Offcanvas does not allow you to opt out of the keyboard control (aka, pressing ESC closes the offcanvas).
It is called
keyboard
within the Bootstrap Offcanvas options.It seems the functionality would be pretty simple to add—I can contribute the changes if I find a moment.
Work Effort
export let keyboard = true;
toOffcanvas.svelte
Offcanvas.d.ts
to have thekeyboard: boolean
prop.Offcanvas.svelte
to only add thebodyEvent
event listener ifkeyboard
istrue
.The text was updated successfully, but these errors were encountered: