If you just click off the track or anywhere on the top 1/2 of the track - it will go away...
To stop it from appearing as a click zone ( which I think is your issue).
Uncheck this box here.....
Logic Pro X Certified : Logic Pro X 10.6.1: OS X 11.1 (Big Sur)
2018 Mac Mini 3.2 GHz Intel Core I7 : 32GB Memory : 2-1TB SSD ; 4 Drobo's 48TB combined
MacBook Pro (16-inch, 2019) - 2.3 GHz 8-Core Intel Core i9
Presonus StudioLive 16 Series III (Digital Audio Interface and Control surface for Logic)
Roland FR-8X : Roland A-PRO ; Ketron SD-90 ; I-Connectivity Mio XL Midi Hub/Router (Networked), BCF2000, BCR2000, Novation Zero SLKMKII