-
Notifications
You must be signed in to change notification settings - Fork 477
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(kit): TuiInputFilesDirective
does not provide capture attribute if null
#4216
Conversation
Pull request was closed ✔️All saved screenshots (for current PR) were deleted 🗑️ |
BundleMonFiles updated (1)
Unchanged files (4)
Total files change +25B 0% Groups updated (1)
Final result: ✅ View report in BundleMon website ➡️ |
projects/kit/components/input-files/test/input-files.directive[#4215].spec.ts
Outdated
Show resolved
Hide resolved
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #4216 +/- ##
=======================================
Coverage 61.32% 61.32%
=======================================
Files 1618 1618
Lines 18997 18997
Branches 2683 2683
=======================================
+ Hits 11649 11650 +1
+ Misses 6868 6867 -1
Partials 480 480
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
).capture ?? this.options.capture | ||
); | ||
this.el.nativeElement.getAttribute('capture') as TuiInputFilesOptions['capture'] | null | ||
) ?? this.options.capture; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
) || this.options.capture;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getAttribute will return null if there is no attribute, so it's more correct here ??
TuiInputFilesDirective
does not provide capture attribute if null
PR Type
What kind of change does this PR introduce?
What is the current behavior?
TuiInputFilesDirective always provide capture attribute
Closes #4215
What is the new behavior?
TuiInputFilesDirective does not provide capture attribute if
null
Does this PR introduce a breaking change?