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(kit): TuiInputFilesDirective does not provide capture attribute if null #4216

Merged
merged 4 commits into from
Apr 14, 2023

Conversation

sviat9440
Copy link
Contributor

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Refactoring
  • Build or CI related changes
  • Documentation content changes

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?

  • Yes
  • No

@lumberjack-bot
Copy link

lumberjack-bot bot commented Apr 14, 2023

Pull request was closed ✔️

All saved screenshots (for current PR) were deleted 🗑️

@bundlemon
Copy link

bundlemon bot commented Apr 14, 2023

BundleMon

Files updated (1)
Status Path Size Limits
demo/browser/main.(hash).js
320.54KB (+21B +0.01%) +10%
Unchanged files (4)
Status Path Size Limits
demo/browser/vendor.(hash).js
190.89KB +10%
demo/browser/runtime.(hash).js
36.99KB +10%
demo/browser/polyfills.(hash).js
18.28KB +10%
demo/browser/scripts.(hash).js
17.9KB +10%

Total files change +25B 0%

Groups updated (1)
Status Path Size Limits
demo/browser/*..js
2.16MB (+49B 0%) -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@codecov
Copy link

codecov bot commented Apr 14, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (92016fb) 61.32% compared to head (2679576) 61.32%.

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           
Flag Coverage Δ
addon-charts 72.03% <ø> (ø)
addon-doc 50.22% <ø> (ø)
addon-editor 49.53% <ø> (ø)
addon-mobile 61.88% <ø> (ø)
addon-table 61.06% <ø> (ø)
addon-tablebars 98.11% <ø> (ø)
cdk 40.91% <ø> (ø)
core 76.98% <ø> (ø)
kit 72.71% <100.00%> (+0.01%) ⬆️
summary 61.32% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...it/components/input-files/input-files.directive.ts 33.33% <ø> (+2.08%) ⬆️
...it/components/input-files/input-files.component.ts 18.51% <100.00%> (+1.01%) ⬆️

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

).capture ?? this.options.capture
);
this.el.nativeElement.getAttribute('capture') as TuiInputFilesOptions['capture'] | null
) ?? this.options.capture;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

) || this.options.capture;

Copy link
Contributor Author

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 ??

@splincode splincode changed the title fix(kit): fix TuiInputFileDirective capture binding (#4215) fix(kit): TuiInputFilesDirective does not provide capture attribute if null Apr 14, 2023
@waterplea waterplea merged commit 2c40931 into taiga-family:main Apr 14, 2023
@well-done-bot
Copy link

well-done-bot bot commented Apr 14, 2023

'Well done'

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

Successfully merging this pull request may close these issues.

🐞 - TuiInputFilesDirective always provide capture attribute
3 participants