Can't turn off stay on screen for javascript project

I’m running a javascript project through VS Code and I’m finding that I can’t turn off sprites being forced to stay on screen when I’m using a tilemap. If I set the SpriteFlag.StayInScreen to false, I can’t move a sprite out of the boundaries. I was eventually able to work around this by setting SpriteFlag.Ghost to true but this seems like it might be a bug. Has anyone else run into this problem before?