This one is due to a bug with the JSAPI directions widget and will be fixed in a future release.
Thank you for your quick answer!
Do you, by any chance, have any idea on when this release will go out?
Regards,
Unfortunately I do not know the exact release date when it will be addressed. If you contact Esri support they can add you to the list of users experiencing this issue.
Adding to this as I have the same issue and this issue is still present in 2025...