Commit ef11892
authored
Fix outdated flash component example in docs (#6631)
The example used `show("#flash")` which does not match the default
generated id (`flash-#{kind}`), and was missing the `hidden` attribute
needed for `phx-mounted` to work correctly.
Updated to follow the same pattern used by the server-error and
client-error flashes in the generated layouts.
Closes #66241 parent 8fb466e commit ef11892
1 file changed
Lines changed: 8 additions & 1 deletion
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
41 | 48 | | |
42 | 49 | | |
43 | 50 | | |
| |||
0 commit comments