Fix for long-standing issue with sliders losing focus on refresh