react-native-macos icon indicating copy to clipboard operation
react-native-macos copied to clipboard

Items missing on `NSOpenPanel`

Open beretboat opened this issue 7 years ago • 2 comments

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?

beretboat avatar Oct 13 '17 02:10 beretboat

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.

ptmt avatar Oct 13 '17 05:10 ptmt

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

beretboat avatar Oct 13 '17 06:10 beretboat