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

Fix #8841  

@jancborchardt @PVince81 @schiesbn