HTML element not respecting conditionals

I have an html element that is meant to trigger a search when the enter key is pressed. It’s working, but it’s only supposed to work on a given tab when we’re viewing that tab. The tabs are “clients”, “policies”, “policy details”. However, I can be on any tab and it executes all three codes.

Are you sure your Element ID is setup correctly on all elements ? Do they have the same Element ID ?

This topic was automatically closed after 14 days. New replies are no longer allowed.