When having document map enabled, it does not update when code has been unfolded due to the search function. E.g. if you search for something which is in a function which is folded, it unfolds it. This works properly. However, the document map does not update properly and remains with the function as folded. Clicking the document map will result in wrong directions to other code.
The image shows a search result in an unfolded function, but the document map shows it as folded.