diff --git a/django_loci/static/django-loci/css/loci.css b/django_loci/static/django-loci/css/loci.css index 51dce57..3f0db86 100644 --- a/django_loci/static/django-loci/css/loci.css +++ b/django_loci/static/django-loci/css/loci.css @@ -35,6 +35,9 @@ input[type=text]{ width: 320px } text-align: center; font-size: 14px; } +.form-row.field-geometry .flex-container { + display: block; +} #floorplan_set-group{ display: none } @media (max-width: 767px){ .field-geometry > div{ diff --git a/django_loci/static/django-loci/js/loci.js b/django_loci/static/django-loci/js/loci.js index 131669d..786575a 100644 --- a/django_loci/static/django-loci/js/loci.js +++ b/django_loci/static/django-loci/js/loci.js @@ -204,7 +204,9 @@ django.jQuery(function ($) { // `dismissAddAnotherPopup()` in Django's RelatedObjectLookups.js to // trigger change event when an ID is selected or added via popup. function triggerChangeOnField(win, chosenId) { - $(document.getElementById(win.name)).change(); + // In Django 4.2, the popup index is appended to the window name. + // Hence, we remove that before selecting the element. + $(document.getElementById(win.name.replace(/__\d+$/, ''))).change(); } window.ORIGINAL_dismissRelatedLookupPopup = window.dismissRelatedLookupPopup; window.dismissRelatedLookupPopup = function (win, chosenId) {