In your shared sample you have used the firstyDayOfWeek
property value as a string which is causing your reported problem while opening
the editor window. The firstyDayOfWeek property accepts the value in the
number type. So, you need to provide the value as a number type as highlighted
in the below code snippet.