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(popover): add fallback value if parseFloat on css fails #6196

Conversation

iampranavsethi
Copy link
Contributor

@iampranavsethi iampranavsethi commented Jul 6, 2021

Arrow positioning for certain corner placements on popover fails on firefox (possibly other non-webkit browsers). In this case, parseFloat() returns NaN and resulting in all operations being converted to NaN. Adding fallback to 0 in case the parseFloat returns NaN.

Closes #5908

PR Checklist

Before creating new PR, please take a look at checklist below to make sure that you've done everything that needs to be done before we can merge it.

  • read and followed the CONTRIBUTING.md guide.
  • built and tested the changes locally.
  • added/updated tests.
  • added/updated API documentation.
  • added/updated demos.

Arrow positioning for certain corner placements on  popover fails on firefox (possibly other non-webkit browsers). In this case, parseFloat() returns NaN and resulting in all operations to be converted to NaN. Adding fallback to 0 in case the parseFloat returns NaN
@codecov
Copy link

codecov bot commented Jul 7, 2021

Codecov Report

Merging #6196 (5da3e40) into development (a929485) will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #6196      +/-   ##
===============================================
- Coverage        77.55%   77.51%   -0.04%     
===============================================
  Files              302      302              
  Lines            10549    10549              
  Branches          2499     2583      +84     
===============================================
- Hits              8181     8177       -4     
- Misses            2358     2362       +4     
  Partials            10       10              
Impacted Files Coverage Δ
src/chronos/i18n/pl.ts 85.00% <0.00%> (-3.34%) ⬇️
src/chronos/i18n/sk.ts 85.13% <0.00%> (-1.36%) ⬇️
src/chronos/i18n/cs.ts 87.64% <0.00%> (-1.13%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a929485...5da3e40. Read the comment docs.

@cypress
Copy link

cypress bot commented Jul 7, 2021



Test summary

86 1 6 0


Run details

Project ngx-bootstrap
Status Failed
Commit 46353f9 ℹ️
Started Jul 7, 2021 12:57 PM
Ended Jul 7, 2021 1:01 PM
Duration 03:54 💡
OS Linux Ubuntu - 20.04
Browser Electron 87

View run in Cypress Dashboard ➡️


Failures

src/integration/datepicker_page_spec.ts Failed
1 Datepicker demo page testing suite > Basic daterangepicker > when user clicks on month, 2 tables with 12 months in each shown with years(current, next) in head

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@daniloff200 daniloff200 merged commit 69f68bd into valor-software:development Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem with Popover "Corner placement" on Firefox 68.0.0
2 participants