-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit 7480e3b
fix(material/progress-spinner): unable to change mode on spinner directive (#14514)
Currently we have the `mat-spinner` directive which is a shortcut to a `mat-progress-spinner` with `mode="indeterminate"`. Since the spinner inherits all of the inputs from the progress spinner, there's nothing stoping people from changing the mode back to `determinate`, however the element will look half-broken because the host bindings assume that the mode won't change. These changes update the host bindings to allow switching between modes.
Fixes #14511.1 parent 229dd6e commit 7480e3b
File tree
6 files changed
+48
-70
lines changed- src
- material-experimental/mdc-progress-spinner
- material/progress-spinner
- tools/public_api_guard/material
6 files changed
+48
-70
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 | + | ||
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
397 | 398 |
| |
398 | 399 |
| |
399 | 400 |
| |
401 | + | ||
402 | + | ||
403 | + | ||
404 | + | ||
405 | + | ||
406 | + | ||
407 | + | ||
408 | + | ||
400 | 409 |
| |
401 | 410 |
| |
402 | 411 |
| |
| |||
470 | 479 |
| |
471 | 480 |
| |
472 | 481 |
| |
482 | + | ||
483 | + | ||
484 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | - | ||
11 | + | ||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | - | ||
16 | - | ||
15 | + | ||
16 | + | ||
17 | 17 |
| |
18 | 18 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 | + | ||
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| |||
540 | 541 |
| |
541 | 542 |
| |
542 | 543 |
| |
544 | + | ||
545 | + | ||
546 | + | ||
547 | + | ||
548 | + | ||
549 | + | ||
550 | + | ||
551 | + | ||
543 | 552 |
| |
544 | 553 |
| |
545 | 554 |
| |
| |||
616 | 625 |
| |
617 | 626 |
| |
618 | 627 |
| |
628 | + | ||
629 | + | ||
630 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
114 | - | ||
114 | + | ||
115 | 115 |
| |
116 | 116 |
| |
117 | 117 |
| |
118 | - | ||
118 | + | ||
119 | + | ||
119 | 120 |
| |
120 | 121 |
| |
121 | 122 |
| |
| |||
229 | 230 |
| |
230 | 231 |
| |
231 | 232 |
| |
233 | + | ||
234 | + | ||
235 | + | ||
236 | + | ||
232 | 237 |
| |
233 | 238 |
| |
234 | 239 |
| |
| |||
356 | 361 |
| |
357 | 362 |
| |
358 | 363 |
| |
359 | - | ||
360 | - | ||
361 | - | ||
362 | - | ||
363 | - | ||
364 | - | ||
365 | - | ||
366 | - | ||
367 | - | ||
368 | - | ||
369 | - | ||
370 | - | ||
371 | - | ||
372 | - | ||
373 | - | ||
374 | - | ||
375 | - | ||
376 | - | ||
377 | - | ||
378 | - | ||
379 | - | ||
380 | - | ||
381 | - | ||
382 | - | ||
383 | - | ||
384 | - | ||
385 | - | ||
386 | - | ||
387 | - | ||
388 | - | ||
389 | - | ||
390 | - | ||
391 | - | ||
392 | - | ||
393 | - | ||
394 | - | ||
395 | - | ||
396 | - | ||
397 | - | ||
398 | - | ||
399 | - | ||
400 | - | ||
401 | - | ||
402 | - | ||
403 | - | ||
404 | - | ||
405 | - | ||
406 | - | ||
407 | - | ||
408 | - | ||
409 | - | ||
410 | - | ||
411 | - |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 | + | ||
10 | + | ||
9 | 11 |
| |
10 | 12 |
| |
11 | 13 |
| |
12 | - | ||
13 | 14 |
| |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
17 | 18 |
| |
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
54 | - | ||
54 | + | ||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
| |||
71 | 71 |
| |
72 | 72 |
| |
73 | 73 |
| |
74 | - | ||
74 | + | ||
75 | 75 |
| |
76 | 76 |
| |
77 | - | ||
78 | - | ||
79 | - | ||
80 | - | ||
81 | - | ||
82 | - | ||
83 | - | ||
84 | - | ||
85 | - | ||
77 | + | ||
78 | + | ||
86 | 79 |
| |
87 | 80 |
| |
88 | 81 |
| |
|
0 commit comments