Dear Customer,
Greetings from Syncfusion support.
We have validated your reported query “Tooltip is shifted” at our end. We have resolved your problem by adding name attribute to the input element like the below code. We have prepared a sample for your reference and it can be available below.
[index.ts]
popupOpen: (args: PopupOpenEventArgs) => {
if (args.type === 'Editor') {
// Create required custom elements in initial time
if (!args.element.querySelector('.custom-field-row')) {
let row: HTMLElement = createElement('div', { className: 'custom-field-row' });
let formElement: HTMLElement = args.element.querySelector('.e-schedule-form');
this.validator = (formElement as EJ2Instance).ej2_instances[0] as FormValidator;
this.validator.addRules('EventType', { required: [true, 'need data'] })
formElement.firstChild.insertBefore(row, args.element.querySelector('.e-title-location-row'));
let container: HTMLElement = createElement('div', { className: 'custom-field-container' });
let inputEle: HTMLInputElement = createElement('input', {
className: 'e-field'
}) as HTMLInputElement;
container.appendChild(inputEle);
row.appendChild(container);
let dropDownList: DropDownList = new DropDownList({
dataSource: [
{ text: 'Public Event', value: 'public-event' },
{ text: 'Maintenance', value: 'maintenance' },
{ text: 'Commercial Event', value: 'commercial-event' },
{ text: 'Family Event', value: 'family-event' }
],
fields: { text: 'text', value: 'value' },
value: (<{ [key: string]: Object }>(args.data)).EventType as string,
floatLabelType: 'Always', placeholder: 'Event Type'
});
dropDownList.appendTo(inputEle);
dropDownList.element.setAttribute('name', 'EventType');
}
}
Kindly try the above sample and get back to us if you would require further assistance.
Regards,
Ravikumar Venkatesan