fix(dom) selectByPattern: last selected file