nusmodifications / nusmods

🏫 Official course planning platform for National University of Singapore.
https://nusmods.com
MIT License
579 stars 314 forks source link

Toast disappears after spamming a keyboard shortcut #723

Closed yangshun closed 6 years ago

yangshun commented 6 years ago

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Pressing on a keyboard shortcut shows a toast message at the bottom.

If the current behavior is a bug, please provide the steps to reproduce. If possible, please upload a screenshot or link to a video recording (on macOS you can use QuickTime) demonstrating the problem.

Keep spamming the keyboard shortcut and the toast eventually disappears, never to be seen again with further triggering of the shortcut.

I recommend just replacing the text if a toast is already shown, rather than hiding and showing again.

What is the expected behavior?

The toast should still appear.

Further information

taneliang commented 6 years ago

Related: The toast remains below the page content after it's dismissed, but it's visible on Macs when the page is over scrolled.

perm
ZhangYiJiang commented 6 years ago

@taneliang Known upstream issue https://github.com/material-components/material-components-web/issues/1258

taneliang commented 6 years ago

@ZhangYiJiang Ah. We could use this workaround for now. https://github.com/material-components/material-components-web/issues/1258#issuecomment-334368890

Rinder5 commented 6 years ago

Hi! If this is not being worked on right now, is it ok if I attempt this?

ZhangYiJiang commented 6 years ago

Go right ahead. Let me know if you need help setting up or understanding the code.