Skip to content
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(dropdown): direction calculation #2975

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

alvarolm
Copy link
Contributor

Description

fixes menu calculation while inferring direction

when using the api settings, after the second request the menu list element has the
display: hidden !important;
css prop, producing a zero inner height of the menu during the direction calculation.

fixes menu calculation while infering direction
@lubber-de
Copy link
Member

lubber-de commented Jan 11, 2024

Could you please provide a jsfiddle to reproduce the issue and confirm your fix?
Thanks

Removing the hidden class before animating may has other visual impacts which needs testing

@alvarolm
Copy link
Contributor Author

alvarolm commented Jan 11, 2024

will provide a reproducible case later, in the mean time here is the config used:


{
            transition: "fade down",
            on: "click",
            forceSelection: true,
            clearable: false,
            showOnFocus: true,
            duration: 100,
            delay: { show: 0, hide: 0 },
            apiSettings: {
                rawResponse: true,
                cache: false,
                url: "/",
                responseAsync: function(settings, callback) {
                    var response = { "results": JSON.parse(optionsCallback()) }
                    callback(response);
                },
                on: 'now',
            },
            saveRemoteData: false,
            filterRemoteData: true,
            throttle: 0,

}

// optionsCallback() returns this json: 
[
    {
        "value": "Europe/Andorra",
        "name": "Europe/Andorra"
    },
    {
        "value": "Asia/Dubai",
        "name": "Asia/Dubai"
    },
    {
        "value": "Asia/Kabul",
        "name": "Asia/Kabul"
    },
    {
        "value": "Europe/Tirane",
        "name": "Europe/Tirane"
    },
    {
        "value": "Asia/Yerevan",
        "name": "Asia/Yerevan"
    },
    {
        "value": "Antarctica/Casey",
        "name": "Antarctica/Casey"
    },
    {
        "value": "Antarctica/Davis",
        "name": "Antarctica/Davis"
    },
    {
        "value": "Antarctica/Mawson",
        "name": "Antarctica/Mawson"
    },
    {
        "value": "Antarctica/Palmer",
        "name": "Antarctica/Palmer"
    },
    {
        "value": "Antarctica/Rothera",
        "name": "Antarctica/Rothera"
    },
    {
        "value": "Antarctica/Troll",
        "name": "Antarctica/Troll"
    },
    {
        "value": "America/Argentina/Buenos_Aires",
        "name": "America/Argentina/Buenos_Aires"
    },
    {
        "value": "America/Argentina/Cordoba",
        "name": "America/Argentina/Cordoba"
    },
    {
        "value": "America/Argentina/Salta",
        "name": "America/Argentina/Salta"
    },
    {
        "value": "America/Argentina/Jujuy",
        "name": "America/Argentina/Jujuy"
    },
    {
        "value": "America/Argentina/Tucuman",
        "name": "America/Argentina/Tucuman"
    },
    {
        "value": "America/Argentina/Catamarca",
        "name": "America/Argentina/Catamarca"
    },
    {
        "value": "America/Argentina/La_Rioja",
        "name": "America/Argentina/La_Rioja"
    },
    {
        "value": "America/Argentina/San_Juan",
        "name": "America/Argentina/San_Juan"
    },
    {
        "value": "America/Argentina/Mendoza",
        "name": "America/Argentina/Mendoza"
    },
    {
        "value": "America/Argentina/San_Luis",
        "name": "America/Argentina/San_Luis"
    },
    {
        "value": "America/Argentina/Rio_Gallegos",
        "name": "America/Argentina/Rio_Gallegos"
    },
    {
        "value": "America/Argentina/Ushuaia",
        "name": "America/Argentina/Ushuaia"
    },
    {
        "value": "Pacific/Pago_Pago",
        "name": "Pacific/Pago_Pago"
    },
    {
        "value": "Europe/Vienna",
        "name": "Europe/Vienna"
    },
    {
        "value": "Australia/Lord_Howe",
        "name": "Australia/Lord_Howe"
    },
    {
        "value": "Antarctica/Macquarie",
        "name": "Antarctica/Macquarie"
    },
    {
        "value": "Australia/Hobart",
        "name": "Australia/Hobart"
    },
    {
        "value": "Australia/Melbourne",
        "name": "Australia/Melbourne"
    },
    {
        "value": "Australia/Sydney",
        "name": "Australia/Sydney"
    },
    {
        "value": "Australia/Broken_Hill",
        "name": "Australia/Broken_Hill"
    },
    {
        "value": "Australia/Brisbane",
        "name": "Australia/Brisbane"
    },
    {
        "value": "Australia/Lindeman",
        "name": "Australia/Lindeman"
    },
    {
        "value": "Australia/Adelaide",
        "name": "Australia/Adelaide"
    },
    {
        "value": "Australia/Darwin",
        "name": "Australia/Darwin"
    },
    {
        "value": "Australia/Perth",
        "name": "Australia/Perth"
    },
    {
        "value": "Australia/Eucla",
        "name": "Australia/Eucla"
    },
    {
        "value": "Asia/Baku",
        "name": "Asia/Baku"
    },
    {
        "value": "America/Barbados",
        "name": "America/Barbados"
    },
    {
        "value": "Asia/Dhaka",
        "name": "Asia/Dhaka"
    },
    {
        "value": "Europe/Brussels",
        "name": "Europe/Brussels"
    },
    {
        "value": "Europe/Sofia",
        "name": "Europe/Sofia"
    },
    {
        "value": "Atlantic/Bermuda",
        "name": "Atlantic/Bermuda"
    },
    {
        "value": "America/La_Paz",
        "name": "America/La_Paz"
    },
    {
        "value": "America/Noronha",
        "name": "America/Noronha"
    },
    {
        "value": "America/Belem",
        "name": "America/Belem"
    },
    {
        "value": "America/Fortaleza",
        "name": "America/Fortaleza"
    },
    {
        "value": "America/Recife",
        "name": "America/Recife"
    },
    {
        "value": "America/Araguaina",
        "name": "America/Araguaina"
    },
    {
        "value": "America/Maceio",
        "name": "America/Maceio"
    },
    {
        "value": "America/Bahia",
        "name": "America/Bahia"
    },
    {
        "value": "America/Sao_Paulo",
        "name": "America/Sao_Paulo"
    },
    {
        "value": "America/Campo_Grande",
        "name": "America/Campo_Grande"
    },
    {
        "value": "America/Cuiaba",
        "name": "America/Cuiaba"
    },
    {
        "value": "America/Santarem",
        "name": "America/Santarem"
    },
    {
        "value": "America/Porto_Velho",
        "name": "America/Porto_Velho"
    },
    {
        "value": "America/Boa_Vista",
        "name": "America/Boa_Vista"
    },
    {
        "value": "America/Manaus",
        "name": "America/Manaus"
    },
    {
        "value": "America/Eirunepe",
        "name": "America/Eirunepe"
    },
    {
        "value": "America/Rio_Branco",
        "name": "America/Rio_Branco"
    },
    {
        "value": "Asia/Thimphu",
        "name": "Asia/Thimphu"
    },
    {
        "value": "Europe/Minsk",
        "name": "Europe/Minsk"
    },
    {
        "value": "America/Belize",
        "name": "America/Belize"
    },
    {
        "value": "America/St_Johns",
        "name": "America/St_Johns"
    },
    {
        "value": "America/Halifax",
        "name": "America/Halifax"
    },
    {
        "value": "America/Glace_Bay",
        "name": "America/Glace_Bay"
    },
    {
        "value": "America/Moncton",
        "name": "America/Moncton"
    },
    {
        "value": "America/Goose_Bay",
        "name": "America/Goose_Bay"
    },
    {
        "value": "America/Toronto",
        "name": "America/Toronto"
    },
    {
        "value": "America/Iqaluit",
        "name": "America/Iqaluit"
    },
    {
        "value": "America/Winnipeg",
        "name": "America/Winnipeg"
    },
    {
        "value": "America/Resolute",
        "name": "America/Resolute"
    },
    {
        "value": "America/Rankin_Inlet",
        "name": "America/Rankin_Inlet"
    },
    {
        "value": "America/Regina",
        "name": "America/Regina"
    },
    {
        "value": "America/Swift_Current",
        "name": "America/Swift_Current"
    },
    {
        "value": "America/Edmonton",
        "name": "America/Edmonton"
    },
    {
        "value": "America/Cambridge_Bay",
        "name": "America/Cambridge_Bay"
    },
    {
        "value": "America/Inuvik",
        "name": "America/Inuvik"
    },
    {
        "value": "America/Dawson_Creek",
        "name": "America/Dawson_Creek"
    },
    {
        "value": "America/Fort_Nelson",
        "name": "America/Fort_Nelson"
    },
    {
        "value": "America/Whitehorse",
        "name": "America/Whitehorse"
    },
    {
        "value": "America/Dawson",
        "name": "America/Dawson"
    },
    {
        "value": "America/Vancouver",
        "name": "America/Vancouver"
    },
    {
        "value": "Europe/Zurich",
        "name": "Europe/Zurich"
    },
    {
        "value": "Africa/Abidjan",
        "name": "Africa/Abidjan"
    },
    {
        "value": "Pacific/Rarotonga",
        "name": "Pacific/Rarotonga"
    },
    {
        "value": "America/Santiago",
        "name": "America/Santiago"
    },
    {
        "value": "America/Punta_Arenas",
        "name": "America/Punta_Arenas"
    },
    {
        "value": "Pacific/Easter",
        "name": "Pacific/Easter"
    },
    {
        "value": "Asia/Shanghai",
        "name": "Asia/Shanghai"
    },
    {
        "value": "Asia/Urumqi",
        "name": "Asia/Urumqi"
    },
    {
        "value": "America/Bogota",
        "name": "America/Bogota"
    },
    {
        "value": "America/Costa_Rica",
        "name": "America/Costa_Rica"
    },
    {
        "value": "America/Havana",
        "name": "America/Havana"
    },
    {
        "value": "Atlantic/Cape_Verde",
        "name": "Atlantic/Cape_Verde"
    },
    {
        "value": "Asia/Nicosia",
        "name": "Asia/Nicosia"
    },
    {
        "value": "Asia/Famagusta",
        "name": "Asia/Famagusta"
    },
    {
        "value": "Europe/Prague",
        "name": "Europe/Prague"
    },
    {
        "value": "Europe/Berlin",
        "name": "Europe/Berlin"
    },
    {
        "value": "America/Santo_Domingo",
        "name": "America/Santo_Domingo"
    },
    {
        "value": "Africa/Algiers",
        "name": "Africa/Algiers"
    },
    {
        "value": "America/Guayaquil",
        "name": "America/Guayaquil"
    },
    {
        "value": "Pacific/Galapagos",
        "name": "Pacific/Galapagos"
    },
    {
        "value": "Europe/Tallinn",
        "name": "Europe/Tallinn"
    },
    {
        "value": "Africa/Cairo",
        "name": "Africa/Cairo"
    },
    {
        "value": "Africa/El_Aaiun",
        "name": "Africa/El_Aaiun"
    },
    {
        "value": "Europe/Madrid",
        "name": "Europe/Madrid"
    },
    {
        "value": "Africa/Ceuta",
        "name": "Africa/Ceuta"
    },
    {
        "value": "Atlantic/Canary",
        "name": "Atlantic/Canary"
    },
    {
        "value": "Europe/Helsinki",
        "name": "Europe/Helsinki"
    },
    {
        "value": "Pacific/Fiji",
        "name": "Pacific/Fiji"
    },
    {
        "value": "Atlantic/Stanley",
        "name": "Atlantic/Stanley"
    },
    {
        "value": "Pacific/Kosrae",
        "name": "Pacific/Kosrae"
    },
    {
        "value": "Atlantic/Faroe",
        "name": "Atlantic/Faroe"
    },
    {
        "value": "Europe/Paris",
        "name": "Europe/Paris"
    },
    {
        "value": "Europe/London",
        "name": "Europe/London"
    },
    {
        "value": "Asia/Tbilisi",
        "name": "Asia/Tbilisi"
    },
    {
        "value": "America/Cayenne",
        "name": "America/Cayenne"
    },
    {
        "value": "Europe/Gibraltar",
        "name": "Europe/Gibraltar"
    },
    {
        "value": "America/Nuuk",
        "name": "America/Nuuk"
    },
    {
        "value": "America/Danmarkshavn",
        "name": "America/Danmarkshavn"
    },
    {
        "value": "America/Scoresbysund",
        "name": "America/Scoresbysund"
    },
    {
        "value": "America/Thule",
        "name": "America/Thule"
    },
    {
        "value": "Europe/Athens",
        "name": "Europe/Athens"
    },
    {
        "value": "Atlantic/South_Georgia",
        "name": "Atlantic/South_Georgia"
    },
    {
        "value": "America/Guatemala",
        "name": "America/Guatemala"
    },
    {
        "value": "Pacific/Guam",
        "name": "Pacific/Guam"
    },
    {
        "value": "Africa/Bissau",
        "name": "Africa/Bissau"
    },
    {
        "value": "America/Guyana",
        "name": "America/Guyana"
    },
    {
        "value": "Asia/Hong_Kong",
        "name": "Asia/Hong_Kong"
    },
    {
        "value": "America/Tegucigalpa",
        "name": "America/Tegucigalpa"
    },
    {
        "value": "America/Port-au-Prince",
        "name": "America/Port-au-Prince"
    },
    {
        "value": "Europe/Budapest",
        "name": "Europe/Budapest"
    },
    {
        "value": "Asia/Jakarta",
        "name": "Asia/Jakarta"
    },
    {
        "value": "Asia/Pontianak",
        "name": "Asia/Pontianak"
    },
    {
        "value": "Asia/Makassar",
        "name": "Asia/Makassar"
    },
    {
        "value": "Asia/Jayapura",
        "name": "Asia/Jayapura"
    },
    {
        "value": "Europe/Dublin",
        "name": "Europe/Dublin"
    },
    {
        "value": "Asia/Jerusalem",
        "name": "Asia/Jerusalem"
    },
    {
        "value": "Asia/Kolkata",
        "name": "Asia/Kolkata"
    },
    {
        "value": "Indian/Chagos",
        "name": "Indian/Chagos"
    },
    {
        "value": "Asia/Baghdad",
        "name": "Asia/Baghdad"
    },
    {
        "value": "Asia/Tehran",
        "name": "Asia/Tehran"
    },
    {
        "value": "Europe/Rome",
        "name": "Europe/Rome"
    },
    {
        "value": "America/Jamaica",
        "name": "America/Jamaica"
    },
    {
        "value": "Asia/Amman",
        "name": "Asia/Amman"
    },
    {
        "value": "Asia/Tokyo",
        "name": "Asia/Tokyo"
    },
    {
        "value": "Africa/Nairobi",
        "name": "Africa/Nairobi"
    },
    {
        "value": "Asia/Bishkek",
        "name": "Asia/Bishkek"
    },
    {
        "value": "Pacific/Tarawa",
        "name": "Pacific/Tarawa"
    },
    {
        "value": "Pacific/Kanton",
        "name": "Pacific/Kanton"
    },
    {
        "value": "Pacific/Kiritimati",
        "name": "Pacific/Kiritimati"
    },
    {
        "value": "Asia/Pyongyang",
        "name": "Asia/Pyongyang"
    },
    {
        "value": "Asia/Seoul",
        "name": "Asia/Seoul"
    },
    {
        "value": "Asia/Almaty",
        "name": "Asia/Almaty"
    },
    {
        "value": "Asia/Qyzylorda",
        "name": "Asia/Qyzylorda"
    },
    {
        "value": "Asia/Qostanay",
        "name": "Asia/Qostanay"
    },
    {
        "value": "Asia/Aqtobe",
        "name": "Asia/Aqtobe"
    },
    {
        "value": "Asia/Aqtau",
        "name": "Asia/Aqtau"
    },
    {
        "value": "Asia/Atyrau",
        "name": "Asia/Atyrau"
    },
    {
        "value": "Asia/Oral",
        "name": "Asia/Oral"
    },
    {
        "value": "Asia/Beirut",
        "name": "Asia/Beirut"
    },
    {
        "value": "Asia/Colombo",
        "name": "Asia/Colombo"
    },
    {
        "value": "Africa/Monrovia",
        "name": "Africa/Monrovia"
    },
    {
        "value": "Europe/Vilnius",
        "name": "Europe/Vilnius"
    },
    {
        "value": "Europe/Riga",
        "name": "Europe/Riga"
    },
    {
        "value": "Africa/Tripoli",
        "name": "Africa/Tripoli"
    },
    {
        "value": "Africa/Casablanca",
        "name": "Africa/Casablanca"
    },
    {
        "value": "Europe/Chisinau",
        "name": "Europe/Chisinau"
    },
    {
        "value": "Pacific/Kwajalein",
        "name": "Pacific/Kwajalein"
    },
    {
        "value": "Asia/Yangon",
        "name": "Asia/Yangon"
    },
    {
        "value": "Asia/Ulaanbaatar",
        "name": "Asia/Ulaanbaatar"
    },
    {
        "value": "Asia/Hovd",
        "name": "Asia/Hovd"
    },
    {
        "value": "Asia/Choibalsan",
        "name": "Asia/Choibalsan"
    },
    {
        "value": "Asia/Macau",
        "name": "Asia/Macau"
    },
    {
        "value": "America/Martinique",
        "name": "America/Martinique"
    },
    {
        "value": "Europe/Malta",
        "name": "Europe/Malta"
    },
    {
        "value": "Indian/Mauritius",
        "name": "Indian/Mauritius"
    },
    {
        "value": "Indian/Maldives",
        "name": "Indian/Maldives"
    },
    {
        "value": "America/Mexico_City",
        "name": "America/Mexico_City"
    },
    {
        "value": "America/Cancun",
        "name": "America/Cancun"
    },
    {
        "value": "America/Merida",
        "name": "America/Merida"
    },
    {
        "value": "America/Monterrey",
        "name": "America/Monterrey"
    },
    {
        "value": "America/Matamoros",
        "name": "America/Matamoros"
    },
    {
        "value": "America/Chihuahua",
        "name": "America/Chihuahua"
    },
    {
        "value": "America/Ciudad_Juarez",
        "name": "America/Ciudad_Juarez"
    },
    {
        "value": "America/Ojinaga",
        "name": "America/Ojinaga"
    },
    {
        "value": "America/Mazatlan",
        "name": "America/Mazatlan"
    },
    {
        "value": "America/Bahia_Banderas",
        "name": "America/Bahia_Banderas"
    },
    {
        "value": "America/Hermosillo",
        "name": "America/Hermosillo"
    },
    {
        "value": "America/Tijuana",
        "name": "America/Tijuana"
    },
    {
        "value": "Asia/Kuching",
        "name": "Asia/Kuching"
    },
    {
        "value": "Africa/Maputo",
        "name": "Africa/Maputo"
    },
    {
        "value": "Africa/Windhoek",
        "name": "Africa/Windhoek"
    },
    {
        "value": "Pacific/Noumea",
        "name": "Pacific/Noumea"
    },
    {
        "value": "Pacific/Norfolk",
        "name": "Pacific/Norfolk"
    },
    {
        "value": "Africa/Lagos",
        "name": "Africa/Lagos"
    },
    {
        "value": "America/Managua",
        "name": "America/Managua"
    },
    {
        "value": "Asia/Kathmandu",
        "name": "Asia/Kathmandu"
    },
    {
        "value": "Pacific/Nauru",
        "name": "Pacific/Nauru"
    },
    {
        "value": "Pacific/Niue",
        "name": "Pacific/Niue"
    },
    {
        "value": "Pacific/Auckland",
        "name": "Pacific/Auckland"
    },
    {
        "value": "Pacific/Chatham",
        "name": "Pacific/Chatham"
    },
    {
        "value": "America/Panama",
        "name": "America/Panama"
    },
    {
        "value": "America/Lima",
        "name": "America/Lima"
    },
    {
        "value": "Pacific/Tahiti",
        "name": "Pacific/Tahiti"
    },
    {
        "value": "Pacific/Marquesas",
        "name": "Pacific/Marquesas"
    },
    {
        "value": "Pacific/Gambier",
        "name": "Pacific/Gambier"
    },
    {
        "value": "Pacific/Port_Moresby",
        "name": "Pacific/Port_Moresby"
    },
    {
        "value": "Pacific/Bougainville",
        "name": "Pacific/Bougainville"
    },
    {
        "value": "Asia/Manila",
        "name": "Asia/Manila"
    },
    {
        "value": "Asia/Karachi",
        "name": "Asia/Karachi"
    },
    {
        "value": "Europe/Warsaw",
        "name": "Europe/Warsaw"
    },
    {
        "value": "America/Miquelon",
        "name": "America/Miquelon"
    },
    {
        "value": "Pacific/Pitcairn",
        "name": "Pacific/Pitcairn"
    },
    {
        "value": "America/Puerto_Rico",
        "name": "America/Puerto_Rico"
    },
    {
        "value": "Asia/Gaza",
        "name": "Asia/Gaza"
    },
    {
        "value": "Asia/Hebron",
        "name": "Asia/Hebron"
    },
    {
        "value": "Europe/Lisbon",
        "name": "Europe/Lisbon"
    },
    {
        "value": "Atlantic/Madeira",
        "name": "Atlantic/Madeira"
    },
    {
        "value": "Atlantic/Azores",
        "name": "Atlantic/Azores"
    },
    {
        "value": "Pacific/Palau",
        "name": "Pacific/Palau"
    },
    {
        "value": "America/Asuncion",
        "name": "America/Asuncion"
    },
    {
        "value": "Asia/Qatar",
        "name": "Asia/Qatar"
    },
    {
        "value": "Europe/Bucharest",
        "name": "Europe/Bucharest"
    },
    {
        "value": "Europe/Belgrade",
        "name": "Europe/Belgrade"
    },
    {
        "value": "Europe/Kaliningrad",
        "name": "Europe/Kaliningrad"
    },
    {
        "value": "Europe/Moscow",
        "name": "Europe/Moscow"
    },
    {
        "value": "Europe/Simferopol",
        "name": "Europe/Simferopol"
    },
    {
        "value": "Europe/Kirov",
        "name": "Europe/Kirov"
    },
    {
        "value": "Europe/Volgograd",
        "name": "Europe/Volgograd"
    },
    {
        "value": "Europe/Astrakhan",
        "name": "Europe/Astrakhan"
    },
    {
        "value": "Europe/Saratov",
        "name": "Europe/Saratov"
    },
    {
        "value": "Europe/Ulyanovsk",
        "name": "Europe/Ulyanovsk"
    },
    {
        "value": "Europe/Samara",
        "name": "Europe/Samara"
    },
    {
        "value": "Asia/Yekaterinburg",
        "name": "Asia/Yekaterinburg"
    },
    {
        "value": "Asia/Omsk",
        "name": "Asia/Omsk"
    },
    {
        "value": "Asia/Novosibirsk",
        "name": "Asia/Novosibirsk"
    },
    {
        "value": "Asia/Barnaul",
        "name": "Asia/Barnaul"
    },
    {
        "value": "Asia/Tomsk",
        "name": "Asia/Tomsk"
    },
    {
        "value": "Asia/Novokuznetsk",
        "name": "Asia/Novokuznetsk"
    },
    {
        "value": "Asia/Krasnoyarsk",
        "name": "Asia/Krasnoyarsk"
    },
    {
        "value": "Asia/Irkutsk",
        "name": "Asia/Irkutsk"
    },
    {
        "value": "Asia/Chita",
        "name": "Asia/Chita"
    },
    {
        "value": "Asia/Yakutsk",
        "name": "Asia/Yakutsk"
    },
    {
        "value": "Asia/Khandyga",
        "name": "Asia/Khandyga"
    },
    {
        "value": "Asia/Vladivostok",
        "name": "Asia/Vladivostok"
    },
    {
        "value": "Asia/Ust-Nera",
        "name": "Asia/Ust-Nera"
    },
    {
        "value": "Asia/Magadan",
        "name": "Asia/Magadan"
    },
    {
        "value": "Asia/Sakhalin",
        "name": "Asia/Sakhalin"
    },
    {
        "value": "Asia/Srednekolymsk",
        "name": "Asia/Srednekolymsk"
    },
    {
        "value": "Asia/Kamchatka",
        "name": "Asia/Kamchatka"
    },
    {
        "value": "Asia/Anadyr",
        "name": "Asia/Anadyr"
    },
    {
        "value": "Asia/Riyadh",
        "name": "Asia/Riyadh"
    },
    {
        "value": "Pacific/Guadalcanal",
        "name": "Pacific/Guadalcanal"
    },
    {
        "value": "Africa/Khartoum",
        "name": "Africa/Khartoum"
    },
    {
        "value": "Asia/Singapore",
        "name": "Asia/Singapore"
    },
    {
        "value": "America/Paramaribo",
        "name": "America/Paramaribo"
    },
    {
        "value": "Africa/Juba",
        "name": "Africa/Juba"
    },
    {
        "value": "Africa/Sao_Tome",
        "name": "Africa/Sao_Tome"
    },
    {
        "value": "America/El_Salvador",
        "name": "America/El_Salvador"
    },
    {
        "value": "Asia/Damascus",
        "name": "Asia/Damascus"
    },
    {
        "value": "America/Grand_Turk",
        "name": "America/Grand_Turk"
    },
    {
        "value": "Africa/Ndjamena",
        "name": "Africa/Ndjamena"
    },
    {
        "value": "Asia/Bangkok",
        "name": "Asia/Bangkok"
    },
    {
        "value": "Asia/Dushanbe",
        "name": "Asia/Dushanbe"
    },
    {
        "value": "Pacific/Fakaofo",
        "name": "Pacific/Fakaofo"
    },
    {
        "value": "Asia/Dili",
        "name": "Asia/Dili"
    },
    {
        "value": "Asia/Ashgabat",
        "name": "Asia/Ashgabat"
    },
    {
        "value": "Africa/Tunis",
        "name": "Africa/Tunis"
    },
    {
        "value": "Pacific/Tongatapu",
        "name": "Pacific/Tongatapu"
    },
    {
        "value": "Europe/Istanbul",
        "name": "Europe/Istanbul"
    },
    {
        "value": "Asia/Taipei",
        "name": "Asia/Taipei"
    },
    {
        "value": "Europe/Kyiv",
        "name": "Europe/Kyiv"
    },
    {
        "value": "America/New_York",
        "name": "America/New_York"
    },
    {
        "value": "America/Detroit",
        "name": "America/Detroit"
    },
    {
        "value": "America/Kentucky/Louisville",
        "name": "America/Kentucky/Louisville"
    },
    {
        "value": "America/Kentucky/Monticello",
        "name": "America/Kentucky/Monticello"
    },
    {
        "value": "America/Indiana/Indianapolis",
        "name": "America/Indiana/Indianapolis"
    },
    {
        "value": "America/Indiana/Vincennes",
        "name": "America/Indiana/Vincennes"
    },
    {
        "value": "America/Indiana/Winamac",
        "name": "America/Indiana/Winamac"
    },
    {
        "value": "America/Indiana/Marengo",
        "name": "America/Indiana/Marengo"
    },
    {
        "value": "America/Indiana/Petersburg",
        "name": "America/Indiana/Petersburg"
    },
    {
        "value": "America/Indiana/Vevay",
        "name": "America/Indiana/Vevay"
    },
    {
        "value": "America/Chicago",
        "name": "America/Chicago"
    },
    {
        "value": "America/Indiana/Tell_City",
        "name": "America/Indiana/Tell_City"
    },
    {
        "value": "America/Indiana/Knox",
        "name": "America/Indiana/Knox"
    },
    {
        "value": "America/Menominee",
        "name": "America/Menominee"
    },
    {
        "value": "America/North_Dakota/Center",
        "name": "America/North_Dakota/Center"
    },
    {
        "value": "America/North_Dakota/New_Salem",
        "name": "America/North_Dakota/New_Salem"
    },
    {
        "value": "America/North_Dakota/Beulah",
        "name": "America/North_Dakota/Beulah"
    },
    {
        "value": "America/Denver",
        "name": "America/Denver"
    },
    {
        "value": "America/Boise",
        "name": "America/Boise"
    },
    {
        "value": "America/Phoenix",
        "name": "America/Phoenix"
    },
    {
        "value": "America/Los_Angeles",
        "name": "America/Los_Angeles"
    },
    {
        "value": "America/Anchorage",
        "name": "America/Anchorage"
    },
    {
        "value": "America/Juneau",
        "name": "America/Juneau"
    },
    {
        "value": "America/Sitka",
        "name": "America/Sitka"
    },
    {
        "value": "America/Metlakatla",
        "name": "America/Metlakatla"
    },
    {
        "value": "America/Yakutat",
        "name": "America/Yakutat"
    },
    {
        "value": "America/Nome",
        "name": "America/Nome"
    },
    {
        "value": "America/Adak",
        "name": "America/Adak"
    },
    {
        "value": "Pacific/Honolulu",
        "name": "Pacific/Honolulu"
    },
    {
        "value": "America/Montevideo",
        "name": "America/Montevideo"
    },
    {
        "value": "Asia/Samarkand",
        "name": "Asia/Samarkand"
    },
    {
        "value": "Asia/Tashkent",
        "name": "Asia/Tashkent"
    },
    {
        "value": "America/Caracas",
        "name": "America/Caracas"
    },
    {
        "value": "Asia/Ho_Chi_Minh",
        "name": "Asia/Ho_Chi_Minh"
    },
    {
        "value": "Pacific/Efate",
        "name": "Pacific/Efate"
    },
    {
        "value": "Pacific/Apia",
        "name": "Pacific/Apia"
    },
    {
        "value": "Africa/Johannesburg",
        "name": "Africa/Johannesburg"
    }
]

may be could be a racing issue between parsing a relatively big json object and / or the async callback
I realized the issue involved the menu outer height after placing this line:

console.log("currentmenu", $currentMenu.is(":hidden"), $currentMenu.outerHeight(), $currentMenu);

in can.openDownward() just below the calculations declaration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants