On 11 May 2018, Sharkie resigned from the House of Representatives as a part of the 2017–18 Australian parliamentary eligibility crisis. She contested the 2018 Mayo by-election on 28 July, and was returned to parliament.