Skip to content

Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'da') and improper dropdown placement #998

Open
@dilizarov

Description

@dilizarov

[REQUIRED] Describe your environment

  • Operating System version: MacOS 12.2.1
  • Browser version: Google Chrome Version 108.0.5359.98 (Official Build) (x86_64)
  • Firebase UI version: 6.0.2
  • Firebase SDK version: 9.15.0

[REQUIRED] Describe the problem

Steps to reproduce:

Open Firebase UI. Click Country Code dropdown. Notice dropdown positioned incorrectly. Click outside dropdown to close it — get error: "Unhandled Runtime Error
TypeError: Cannot read properties of undefined (reading 'da')"

Relevant Code:

Typical set-up with appropriate div with id firebaseui-auth-container

Relevant initialization:

      let ui =
        firebaseui.auth.AuthUI.getInstance() ||
        new firebaseui.auth.AuthUI(firebase.auth());

      if (!isLoggedIn) {
        ui.reset();
        ui.start("#firebaseui-auth-container", {
          signInOptions: [
            {
              provider: firebase.auth.PhoneAuthProvider.PROVIDER_ID,
              recaptchaParameters: "invisible",
              badge: "inline",
            },
          ],
          callbacks: {
            signInSuccessWithAuthResult: () => false,
          },
        });
      }

Screen Shot 2022-12-14 at 8 18 16 PM

Dropdown should be underneath/over the country code, not centered on screen.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions