Skip to content

[BUG] Formio 8 with Angular 18 expects [language] input to be an EventEmitter not a string. It throws console error despite sending language as EventEmitter #1123

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

Open
1 task done
celu opened this issue Jan 21, 2025 · 1 comment
Assignees
Labels

Comments

@celu
Copy link

celu commented Jan 21, 2025

Environment

Please provide as many details as you can:

  • Hosting type
    • Local deployment
      • Version: 8.0.0
  • Formio.js version: 5.0.0
  • Frontend framework: Angular 18.2
  • Browser: chrome
  • Browser version: 132.0

Steps to Reproduce

  1. Trying to pass string 'es' to [language] input in formio angular selector throws type 'String' is not assignable to type EventEmitter
  2. Documentation describes language as a string input
  3. I created an EventEmitter which executes and sends 'es' string to [language] input, and language changes correctly.
  4. Also documentation says to set la language con options but FormioOptions interface doesn't allow language attribute in new version anymore.

Expected behavior

To allow developers to assign language in options or to create a new input to send current language as string

@celu celu added the bug label Jan 21, 2025
@lane-formio lane-formio assigned Tatsiana8 and olgabann and unassigned Tatsiana8 May 7, 2025
@formio formio deleted a comment from lane-formio May 7, 2025
@ZenMasterJacob20011
Copy link
Contributor

Looks like you should be able to pass an event emitter or a string to the language option. Created a pr to fix this here
#1136

"Also documentation says to set la language con options but FormioOptions interface doesn't allow language attribute in new version anymore."
Were in the documentation do you see this? We'll try and get that updated as well

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

No branches or pull requests

4 participants