Timelines Negative Sign Crash | World Anvil

Remove these ads. Join the Worldbuilders Guild

Timelines Negative Sign Crash

closed
· Timelines ·
By Graylion on 03/03/2024
· Assigned to ttblaze
· Under Investigation

Leaving a lone negative sign in a date input field or backspacing a negative date to retype it, crashes the timeline.   Thank you for the amazing timelines

Steps to Reproduce

  • Timelines
  • Edit Mode
  • Create an event
  • Enter a negative sign and click off of the input box or...
  • Backspace a negative date removing the numbers and click off of the input box
  • You have now summoned the Sparky Udan
  • He may be banished with a refresh
  •  
     

    Operating System

    Windows

    Browser

    Brave

    Related Entity

    Timelines

    History

    ttblaze @ 04 Mar, 2024 11:01:45 Assignee
    Assigned ttblaze
    ttblaze @ 04 Mar, 2024 11:02:18 Assignee
    ttblaze Added tag Under Investigation
    ttblaze @ 04 Mar, 2024 11:17:47 Assignee

    Hi. There is an actual bug somewhere in there but I cannot for the life of me get it to crash. I have deployed a stopgap to prevent you from setting a "-" in any time input. I hope it will mitigate the issue. It seems to work when deleting a negative number but not when you deliberately set "-" on your own. I hope this is not preventing you from working in some way. I will keep looking into it.

    Graylion @ 04 Mar, 2024 11:09:57

    The trigger I think is when a negative sign remains in a date input box and the autosave triggers or the date input box looses focus. I will go poke.

    Graylion @ 04 Mar, 2024 11:29:07

    If you leave a negative sign and click off of the data input now it places some very long negative calculated number in the field. In this example it is -9007199254740991 however it no longer crashes the page. If you delete the number and stay on the field leave the negative nothing happens. If you tab off the field it calculates and places -9007199254740991 there. It appears to reproduce the same negative number in a start or end field. Could be days, minutes any of them.  

    ttblaze @ 22 Mar, 2024 08:22:35 Assignee

    This bug is annoying. It is also very minor and I have put too much time into it already. I trust it is not a major problem for you and I will close this report because I need to tackle more pressing things, but I will come back to it when time permits.

    ttblaze @ 22 Mar, 2024 08:22:47 Assignee
    set this bug to closed
    Graylion @ 22 Mar, 2024 12:48:32

    Understood and thank you