-
Notifications
You must be signed in to change notification settings - Fork 130
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
<Input required... WITH rendered output #461
Comments
Thanks Brent - I agree, that fix is appropriate. I tested the following:
With this code:
That said, I'm not sure whether to publish a new update based on this issue alone. We can see if any future issues come up that we want to publish fixes for (that we might then combine with this one). But it's great that you identified this issue and associated fix...! |
Yeah, it is so minor...I would wait. Thanks |
Hi Brent,
I wanted to send you an email with some thoughts about JsViews that are not
related to a specific GitHub repository issue. But I don't think I have your personal (private) email. Could you send it to me?
You can email me directly at [email protected].
(I wanted to have a private conversation, not a public one on GitHub).
Thanks!
Best regards, Boris
…On Mon, Oct 28, 2024 at 8:12 AM BrentH ***@***.***> wrote:
Yeah, it is so minor...I would wait. Thanks
—
Reply to this email directly, view it on GitHub
<#461 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABRPIXI5VQBIDGJCOJQ43TZ5ZH4JAVCNFSM6AAAAABP2OBCSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBRHA3DOMZYGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Boris,
I haphazardly discovered a minor issue:
I normally use
required
like this...<input type="checkbox" value="{{:value}}" data-link="required{:value == 0}" />
But I forgot and used it like this...
<input type="checkbox" value="{{:value}}" data-link="required{:value == 1 ? true : false}" />
or this
<input type="checkbox" value="{{:value}}" data-link="required{:value == 1 ? 'required' : ''}" />
neither of which works.
Testing: I changed
required
todisabled
and it did work strangely...I looked at the JsViews source code and added
attr === "required"
to line 4797else if (attr === "selected" || attr === "disabled" || attr === "multiple" || attr === "readonly" || attr === "required")
This fixed it and makes it consistent with how
disabled
works too ;-)Brent
The text was updated successfully, but these errors were encountered: