OutlinePass Will add a frame to the unselected model

When a model is selected, some irrelevant models will be added to the outer border
The following is abnormal
1
The model next to it is normal

how to solve this problem?

Do you mind demonstrating this approach with a live example? You can use the following fiddle as a template: https://jsfiddle.net/1wx80ag5/