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

False positive "duplicated id" combined with if.bind #188

Open
RomkeVdMeulen opened this issue Sep 13, 2018 · 0 comments
Open

False positive "duplicated id" combined with if.bind #188

RomkeVdMeulen opened this issue Sep 13, 2018 · 0 comments

Comments

@RomkeVdMeulen
Copy link

I have this construction in my template:

<input type="text" list="my-options">
<datalist if.bind="type === 'server' id="my-options">
  <option repeat.for="server of servers" value="${server.name}">
</datalist>
<datalist if.bind="type === 'domain' id="my-options">
  <option repeat.for="domain of domains" value="${domain.name}">
</datalist>

Only one datalist will ever be rendered, so there should not be a problem with multiple elements having the id "my-options". However, the template linter gives this warning:

WARNING: duplicated id: my-options Ln 5 Col 4 mytemplate.html

The linter should not give a duplicate id warning if all the elements with the same id all have an if.bind.

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

No branches or pull requests

1 participant