First, just because there is (good) answer to the question that does not mean that question should get reopened. Answer to the question is upvoted, so question will not be automatically removed from site just because it is closed.
Second, in your particular case, while your edit made your question a tad clearer it is still bad question.
- It shows lack of research - answer is basically copied from documentation
- It lacks MCVE, it is hard to say what is your problem without knowing what is your code. I would have closed it as
Questions seeking debugging help ("why isn't this code working?")
must include the desired behavior, a specific problem or error and
the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not
useful to other readers. See: How to create a Minimal, Complete, and
Verifiable example
- Because there is no code, it could also be interpreted as too broad, how to - give me the code question.
When you are asking questions, keep in mind that not only people that have stumbled upon your exact issue can answer your question. You can also get good answers from skilled developers that can quickly locate issues in your code even though they have never encountered your exact issue themselves. But in order to do that they need to see your code.