core-4468 fix sharing dialog checkbox and selection issue.