If I have an address field with just a 'postal_code' and 'locality' field, changing the country will trigger Address::clearValues() which then adds empty children to the element for 'dependent_locality', 'administrative_area' and 'sorting_code'. This is problematic when you try to theme an address field because these "ghost elements" will be detected by Element::getVisibleChildren().
Fix coming shortly.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | address-3057840-2.patch | 1.11 KB | kristiaanvandeneynde |
Comments
Comment #2
kristiaanvandeneyndeNot sure if something so small requires a test. But here's what fixed it for me.
Comment #4
bojanz commentedCommitted, thank you!