Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spellCheck={false} doesn't render #2186

Closed
kraftwer1 opened this issue Feb 6, 2020 · 3 comments
Closed

spellCheck={false} doesn't render #2186

kraftwer1 opened this issue Feb 6, 2020 · 3 comments
Labels

Comments

@kraftwer1
Copy link
Contributor

Stencil version:

I'm submitting a:

[x] bug report

Current behavior:

<input spellCheck={false} /> 

...renders to:

<input>

While...

<input spellCheck="false" /> 

...leads to an error:

[ ERROR ]  TypeScript: input.tsx: Type 'string' is not assignable to type 'boolean | undefined'.

My current workaround that works fine...

<input spellCheck={"false" as any as boolean} /> 

...renders to:

<input spellcheck="false">

Expected behavior:

<input spellCheck={false} /> 

...renders to:

<input spellcheck="false">
@frerepoulet
Copy link

I'm on version @stencil/core v1.13.0
this:
<input spellcheck="false" />
always renders to:
<input spellcheck="true" />

@ingomc
Copy link

ingomc commented Jun 30, 2020

i have the same problem, open a new issue

@kraftwer1
Copy link
Contributor Author

kraftwer1 commented Jul 3, 2020

True, "false" renders to "true". Passing it as a boolean works, however:

<input spellcheck={false} />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants