-
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
Fix Bugs 05/04/2024 #15
Conversation
window.gform.addAction( | ||
'gform_input_change', | ||
function (elem) { | ||
if ( | ||
!(elem instanceof HTMLInputElement) || | ||
!elem.closest(totalSelector) || | ||
!elem.value | ||
) { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what theeeee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is what the formatter wanted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just leaves in the breeze,
drifting onwards, no control,
formatter decides
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eww
$exists = GFAPI::form_id_exists($form_id); | ||
if (empty($exists)) { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$exists = GFAPI::form_id_exists($form_id); | |
if (empty($exists)) { | |
return; | |
} | |
if (! GFAPI::form_id_exists($form_id)) { | |
return; | |
} |
stop doing empty checks on boolssssss!!!!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
theres literally no harm in doing it - it just adds an extra layer of safety in case the function doesnt do what its docblock says
<option value="">--Please select a field--</option> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<option value="">--Please select a field--</option> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const > var is only required thing
Fix Current Bugs 05/04/2024
Not Checking the total selector field
The section of JS checking if the field was the correct input was removed.
Values displaying Nan after number input adds pound sign
When clicking off the input the number field automatically adds the pound sign.
This cant be converted to a float so returns a NaN value - as this is still technically not empty it passes this through to the values.
Chosen field not being saved in the dropdown in editor
The field builder currently doesn't show the saved value of the chosen field in the dropdown.
gift-aid-not-saving.mp4