The hide flag feature has been buggy since day one.
Sometimes it gets "stuck" in the mode of remove/replace flag where clicking anywhere on the green causes the action. And when it gets stuck like that, it stays stuck until the next hole. You can even hear the action of it when you're done with the hole and looking at the scorecard and click anywhere on the scorecard where the green once was.