fix #38061: Clicking a rest and extending selection more than once does not update Inspector