Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.8k
allow theel option to accept anHTMLElement instance#1712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:develop
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
vercelbot commentedJan 5, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect:https://vercel.com/docsify-core/docsify-preview/GFgr7UN6pNmBGZEaRQrskSY52E5t |
codesandbox-cibot commentedJan 5, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This pull request is automatically built and testable inCodeSandbox. To see build info of the built libraries, clickhere or the icon next to each commit SHA. Latest deployment of this branch, based on commitc8141f7:
|
This aligns it with what the docs were already saying erroneously, plusthis is useful in cases when people have refs to an element already(embedding Docsify in a custom element shadow root, or in a Reactcomponent that has a ref to the target element, etc).
408a4e0 to00a8731Comparetrusktr commentedJan 7, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I realized that
|
Uh oh!
There was an error while loading.Please reload this page.
Summary
The
eldocs saywhich wasn't true. This change updates the code to match the docs.
Additionally this allows Docsify to be embedded in custom elements or components systems like React/Vue/Solid/etc where normally people have a reference to an element.
What kind of change does this PR introduce?
Bugfix?
Feature?
For any code change,
Does this PR introduce a breaking change? (check one)
Related issue, if any:
Tested in the following browsers: