Is there a prettier way to update a sticky N/ui/message then to create a new one? I have some validation warnings in a message.Message when the user updates the affected fields but it looks a bit choppy/jumpy when it removes the old one and inserts a new one.
s
Sciuridae54696d
12/01/2021, 12:48 PM
global variable, hide and show not good?
w
Watz
12/01/2021, 1:11 PM
I don't like that the whole page shifts when it removes it hide()'s and show()'s. Would like to update the message without that.
s
Sciuridae54696d
12/01/2021, 1:33 PM
I'm guessing no DOM?
Sciuridae54696d
12/01/2021, 1:36 PM
this would work without that shifting..... if DOM manipulation is allowed
😄, I'm no stranger to DOM-manipulation, but in this case I'll take the ugly shifting.
It only shifts if you are at the top of the page, not if you scroll down a pixel.