Merge pull request #12240 from shariquerik/collapsible-geolocation-fix

This commit is contained in:
Prssanna Desai 2021-01-22 11:50:41 +05:30 committed by GitHub
commit fe77c3c321
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,7 +17,7 @@ frappe.ui.form.ControlGeolocation = frappe.ui.form.ControlData.extend({
this.map_area.prependTo($input_wrapper);
this.$wrapper.find('.control-input').addClass("hidden");
if ($input_wrapper.is(':visible')) {
if (this.frm) {
this.make_map();
} else {
$(document).on('frappe.ui.Dialog:shown', () => {