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
index.php?main_page=address_book_process&edit=1:720 Uncaught TypeError: Cannot set properties of null (setting 'className')
at hideStateField (index.php?main_page=address_book_process&edit=1:720)
at update_zone (index.php?main_page=address_book_process&edit=1:423)
at onload (index.php?main_page=address_book_process&edit=1:888)
This is because the bootstrap template doesn't include the stBreak element, and in the ZC script jscript_addr_pulldowns.php (under address_book_process) there is no check that stBreak actually exists on the page (unlike stText):
I would therefore add it somewhere, e.g. in tpl_address_book_process_default.php, with d-none class, so that the js error is not thrown. Of course the ideal solution would be to add the check in the ZC core js file.
The text was updated successfully, but these errors were encountered:
marco-pm
changed the title
JS error on the address book process because #stBreak element is missing
JS error on the address book process page because #stBreak element is missing
Nov 10, 2021
Noting that the change is made to tpl_modules_common_address_format.php so that the issue gets squished for the create-account and multi-page checkout pages' processing, too.
This is because the bootstrap template doesn't include the
stBreak
element, and in the ZC scriptjscript_addr_pulldowns.php
(underaddress_book_process
) there is no check thatstBreak
actually exists on the page (unlikestText
):I would therefore add it somewhere, e.g. in
tpl_address_book_process_default.php
, withd-none
class, so that the js error is not thrown. Of course the ideal solution would be to add the check in the ZC core js file.The text was updated successfully, but these errors were encountered: