Sharing to group is not working

So I created a group, added some members. But when I tried to share a lib with a group, entering the same of the group in the search box, it doesn’t appear. Am I missing settings somewhere?