Skip to content

Comma separated exports pick the wrong documentation on hover #1168

@ekhaled

Description

@ekhaled

Describe the bug
The height prop in below code displays the wrong documentation on hover.
Because it is in a single export statement.

  /**
   * Size of the Icon
   *  @type {''|'small'|'medium'|'large'}
   */
  export let size = "";

  /**
   * Color of the Icon
   *  @type {'red'|'green'|'blue'|'yellow'}
   */
  export let color = "",
    /**
     * Height of the Icon
     *  @type {'tall' | 'short'}
     */
    height = "";

Expected behavior
On hover, height should show docs from the docblock above it.
Instead, it shows docs from the color docblock

Screenshots
Correct behaviour:

Screenshot 2021-09-08 at 14 44 48

Screenshot 2021-09-08 at 14 44 38

Incorrect behaviour:

Screenshot 2021-09-08 at 14 44 59

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions