Stencil: spellCheck={false} doesn't render

Created on 6 Feb 2020  路  3Comments  路  Source: ionic-team/stencil

Stencil version:

 @stencil/[email protected]

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">
triage

Most helpful comment

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

All 3 comments

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

i have the same problem, open a new issue

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

<input spellcheck={false} />
Was this page helpful?
0 / 5 - 0 ratings