Table: Restrict selector scope by using generated popup ID

Fixes gh-7341