Thanks for the report. This commit should fix the issue:
https://github.com/discourse/discourse/commit/28283c2396f2a7832effa264cdd6272ebe069e97
For the record, I could reproduce this on Edge 17, but not on Edge 18 (see also the related Microsoft Edge issue ticket).