Use attr() instead of data() so the item ids work as intended

Fix #8841
Merge pull request #9303 from owncloud/issue/8841

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