std-toast icon indicating copy to clipboard operation
std-toast copied to clipboard

should setting open attribute cancel timeouts?

Open fergald opened this issue 6 years ago • 0 comments

What should

toast.show();
toast.setAttribtue("open", "");

do? Should it still close after a timeout?

toast.show();
toast.removeAttribtue("open");
toast.setAttribtue("open", "");

will cancel the close-after-timeout callback.

Whatever the answer is, we should make it clear in the explainer how manipulating the attribute impacts the timeout behaviour.

fergald avatar Jul 23 '19 20:07 fergald