I have two toilets on my second floor. One will run occasionally after it is flushed until the second toilet is flushed. When the second toilet is flushed, the first stops running as soon as the valve is opened.
flushing the second toilet causes a sudden dip in supply pressure that allows the first to seal and once sealed there is no flow holding the valve open.
It sounds like the float valve needs a new button.