Do not strict compare item source id so the dropdown is closed correctly

Fix #8984 

@jancborchardt @PVince81 @schiesbn