-
Notifications
You must be signed in to change notification settings - Fork 0
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
Lava textbox isrequired false not honored #8
Comments
Hey Zack! We have some ideas as to what this could be, could you tell us what Lava engine you're running so we can more thoroughly validate our fix? |
Hey @bradencohen this is on Fluid, thanks! |
@zackdutra can you confirm that this is still not working for you. We've tested this and it seems to be working correctly. |
Hey @jonedmiston to confirm, this lava This was originally reported while doing local development, but this test today was on our production instance. |
@zackdutra odd. I've tested your markup Is there anything in your Lava configuration that is different or unique? |
Hey Jon, I've inspected the content blocks between the two, the Text Box shortcode, and the Rock Control shortcode between our production server and the prealpha site, and they appear identical. Additionally, I ran the two through ChatGPT and it thinks they're identical in content. I'm not sure how to explain the difference either. |
Description
Setting isrequired to false in the lava textbox shortcode does not work.
Actual Behavior
The input always has "required" on it, whether or not false is set.
Expected Behavior
The input required attribute should change depending on what is set on the shortcode.
Steps to Reproduce
{[ textbox name:'test' label:'Test' value:'test' isrequired:'false' ]}
This will cause fields that should not be required to be required on forms.
In my testing, I was able to make a functional version of the Text Box by moving the assign for isrequired inside of the rock control shortcode body, such as this:
Issue Confirmation
Rock Version
16.6
The text was updated successfully, but these errors were encountered: