Unpublished content is displaying in entity referenced fields
While adding entity reference field to the content type,

In Field Setting--> Entity selection-->Mode -->Select Views and create a view by filtering only Published content, and assign the same to "View used to select the entities *"

Hope this will help you in building views link