Skip to content

docs: view source link is broken for htmlSelectExample #6296

@nurseiit

Description

@nurseiit

View source on GitHub link for HTMLSelectExample page is broken:

leads to hTMLSelectExample.tsx (with only the first letter in lowercase) instead of htmlSelectExample.tsx.

Looks like this is due to

const fileName = exampleName.charAt(0).toLowerCase() + exampleName.slice(1) + ".tsx";

Steps to reproduce

  1. go to https://blueprintjs.com/docs/#core/components/html-select
  2. click "View source on GitHub"
  3. observe that it leads to a non-existent file

Actual behavior

Expected behavior

Possible solution

Not sure if we should make an exception for this example only, and I figure it would break for other uppercase example files that could be added in the future.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions