I think there is a bug or a little wrong implementation for the API or maybe wrong explanation on this part of the documentation
This is not working.
But if I change it like on the screenshot below it's working, well at least for me.
I'm not sure if this is the right place to report this.
If it's not, please delete it and let me know the right place to report this.