Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Items missing on NSOpenPanel #176

Open
beretboat opened this issue Oct 13, 2017 · 2 comments
Open

Items missing on NSOpenPanel #176

beretboat opened this issue Oct 13, 2017 · 2 comments
Labels

Comments

@beretboat
Copy link
Collaborator

So I have an app that built with react-native-macos. The app uses native NSOpenPanel to open local files. Recently I found the some of the items were missing when the file open panel invoked:
(The first image is when the issue occurred and the second image is expected)
screen shot 2017-10-13 at 9 43 26 am
screen shot 2017-10-13 at 9 43 54 am

(In case you try to reproduce the issue, the panel needs to be in list view, and there's should at least 3 levels in the file tree. Toggling the gray triangle to show/hide the node you will see the problem)

I found that the problematic code is -[NSView(NSViewAnimationWithBlocks) actionForLayer:forKey:], where this category method takes over ALL calls even the view is not a react-native view. Remove this method will fix the problem, and LayoutAnimation seems works fine. But I don't know if it would break something because I'm not sure what it really does. So what's the right fix?

@ptmt
Copy link
Owner

ptmt commented Oct 13, 2017

I’m out on vacation until 22nd October, but on the top of my head this came from some third-party lib. Try with this being commented for a while, I’ll try to look at this when I’m back. And thank you for your interest again, it means a lot.

@beretboat
Copy link
Collaborator Author

Thanks for the quick response. And enjoy your vocation :-)

@aleclarson aleclarson added the bug label Jan 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants