Closed cuddlecake closed 1 year ago
Hi @cuddlecake
thanks for reporting, this in fact is a known problem introduced with v14. We're working to fix it and will update your ticket as soon as we have updates.
Hi @cuddlecake
the fix for this problem is now released.
β‘ Reproduction
StackBlitz link to reproduce the issue: https://stackblitz.com/angular/emkdqdpgdry?file=src%2Fapp%2Ffile-uploader-reactive-example.html
Steps to reproduce:
undefined-input
π Expected Behavior
Have a unique ID for label and input
π Actual Behavior
ID's are
undefined-input
andundefined-label
across all instances of file-uploaderπ¦ Environment
Cause & Fix
The FileUploaderComponent has this code (same order, as original source, but irrelevant code omitted for brevity):
Because
get id()
is hoisted up and used before_id
is initialized, the getter returns undefined, resulting inundefined-input
andundefined-label
respectively.This can be fixed by changing the order of declarations.