-
Notifications
You must be signed in to change notification settings - Fork 650
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
Bad id created when using "no-update" and scoped id together #1664
Comments
I messed around with your repro case in Try Online, but could only conclude a few things:
|
The issue is in copying the attributes inside
If the <label for:scoped="input1">Input</label>
<input no-update id:scoped="input1" /> |
I had the same issue, using My solution was using
|
Marko Version: x.x.x
5.1.10
Details
If you use "no-update" on a scoped form element, the id of the element isn't correct.
The following marko will generate an id of "s0-0-0-13-s0-0-0-13-input1"
I don't know if this is a huge issue other than the fact that if I use a "for" tag on a label, the for tag uses "s0-0-0-13-input1", so doesn't match.
Expected Behavior
The id should be
s0-0-0-13-input1
or at least should be matched by the "for".should generate:
Actual Behavior
Possible Fix
Additional Info
Your Environment
Node v14.15..4
Chrome v88
Desktop
Steps to Reproduce
Stack Trace
The text was updated successfully, but these errors were encountered: