Repository navigation
Commit 4f52d4e
fix(common): don't generate srcset if noopImageLoader is used (#47804)
Do not generate a srcset if the loader being used is the default noopImageLoader. This loader does not take width into account, so it does not make sense to use it with srcsets.
PR Close #478041 parent 716352c commit 4f52d4e
2 files changed
Lines changed: 19 additions & 3 deletions
File tree
- packages/common
- src/directives/ng_optimized_image
- test/directives
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
421 | | - | |
| 421 | + | |
| 422 | + | |
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1401 | 1401 | | |
1402 | 1402 | | |
1403 | 1403 | | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
1404 | 1418 | | |
1405 | 1419 | | |
1406 | 1420 | | |
| |||
1538 | 1552 | | |
1539 | 1553 | | |
1540 | 1554 | | |
| 1555 | + | |
1541 | 1556 | | |
1542 | 1557 | | |
1543 | 1558 | | |
| |||
1548 | 1563 | | |
1549 | 1564 | | |
1550 | 1565 | | |
1551 | | - | |
1552 | | - | |
| 1566 | + | |
| 1567 | + | |
1553 | 1568 | | |
1554 | 1569 | | |
1555 | 1570 | | |
| |||
0 commit comments