fix: use text input for inline link URL to avoid browser url validation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
var row = document.createElement('div');
|
||||
row.className = 'flex gap-2 items-center mb-2 contact-link-row';
|
||||
row.innerHTML = '<input type="text" name="new_link_labels" class="form-input" placeholder="Label *" required style="flex:1;">' +
|
||||
'<input type="url" name="new_link_urls" class="form-input" placeholder="URL *" required style="flex:2;">' +
|
||||
'<input type="text" name="new_link_urls" class="form-input" placeholder="URL *" required style="flex:2;">' +
|
||||
'<input type="text" name="new_link_roles" class="form-input" list="link-roles" placeholder="Role..." style="flex:1;">' +
|
||||
'<button type="button" class="btn btn-ghost btn-xs" style="color:var(--red);" onclick="this.closest(\'.contact-link-row\').remove()">×</button>';
|
||||
document.getElementById('contact-links-list').appendChild(row);
|
||||
|
||||
Reference in New Issue
Block a user