Skip to content

React autocomplete issue #12989

@normalser

Description

@normalser
// File Test.tsx
import * as React from "react";

interface Props {
    url: string | null
    size?: 'small' | 'medium' | 'large' | 'custom'
}

export class Test extends React.Component<Props, {}> {

    render() {
       return <div/>
    }
}




// File Test2.tsx
import * as React from "react";
import * as Ui from './Test'
import { Test } from './Test'

interface Props {
}

export class Test2 extends React.Component<Props, {}> {

    render() {
       return <div>
            <Test />  // <- OK inside <Test />
            <Ui.Test /> <- Not ok inside <Ui.Test />
        </div>
    }
}

Here are suggestions for <Test />
image

Here are suggestions for <Ui.Test />
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: JSX/TSXRelates to the JSX parser and emitterDomain: LS: Completion ListsThe issue relates to showing completion lists in an editorFixedA PR has been merged for this issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions