Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Library hardcoded to code-input element name #185

Open
Labels
area:coreA bug/feature for the core code-input.js/code-input.css files breaking-change bugSomething isn't working priority:low

Description

If any other custom element with the name code-input is loaded, it will clash.

  • The JavaScript could be made with a try...catch statement to only register with the name code-input if it's not yet taken and allow registering of the exported CodeInput element class under any name.
  • The CSS would be more difficult to change dynamically. Should it be loaded by the JavaScript in major version 3? If so, that may be bad for progressive enhancement. Perhaps how to modify the element name via code patches should be included in the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:coreA bug/feature for the core code-input.js/code-input.css files breaking-change bugSomething isn't working priority:low

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /