You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When setting html_attributes options for min and step these attribute values are not set for the element as per field creation code.
To Reproduce
Steps to reproduce the behavior:
Create a code snippet for the site that creates a number field and add min and step to the html_attributes option.
$fields[] = newPMProRH_Field(
'test_number_min_step', // input field name, used as meta key'number', // field typearray(
'label' => 'Number Test', // display custom label, if not used field name will be used'html_attributes' => array(
'min' => '5',
'step' => '5',
), // add valid html input field attributes'hint' => 'This is a test of html attributes for a number field', // display a hint under field'profile' => true, // show on profile
)
);
Navigate to the Membership Checkout page on the frontend.
Describe the bug
When setting
html_attributes
options formin
andstep
these attribute values are not set for the element as per field creation code.To Reproduce
Steps to reproduce the behavior:
min
andstep
to thehtml_attributes
option.Expected behavior
That HTML attributes created for a field to be set in the rendered HTML for the element
Isolating the problem (mark completed items with an [x]):
The text was updated successfully, but these errors were encountered: