Enter (() => { const tp = document.createElement('ids-time-picker'); tp.id = 'test-id'; document.querySelector('ids-container').appendChild(tp); })() in the console and inspect element
Enter (() => { const tp = document.createElement('ids-time-picker'); document.querySelector('ids-container').appendChild(tp); })() in the console and look at ids-trigger-button and ids-time-picker-popup ids have incomplete id strings
Technically if its in the shadowRoot its a different document so dont need unique IDs but maybe we can do ${mainElement.id}-internal-input or something
Describe the bug Internal
ids-trigger-field
of a time picker and date picker has the sameid
of its parent.To Reproduce
Steps to reproduce the behavior:
(() => { const tp = document.createElement('ids-time-picker'); tp.id = 'test-id'; document.querySelector('ids-container').appendChild(tp); })()
in the console and inspect element(() => { const tp = document.createElement('ids-time-picker'); document.querySelector('ids-container').appendChild(tp); })()
in the console and look atids-trigger-button
andids-time-picker-popup
ids have incomplete id stringsExpected behavior IDs should be unique
Version
Screenshots