mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-13 12:55:05 +02:00
Fix cursor on foreign link field links, fixes #9992
This commit is contained in:
committed by
Martin Raifer
parent
edb176f513
commit
179fa71cdf
@@ -171,11 +171,10 @@ export function uiFieldText(field, context) {
|
||||
} else if (field.type === 'identifier' && field.urlFormat && field.pattern) {
|
||||
|
||||
input.attr('type', 'text');
|
||||
|
||||
outlinkButton = wrap.selectAll('.foreign-id-permalink')
|
||||
.data([0]);
|
||||
|
||||
outlinkButton.enter()
|
||||
outlinkButton = outlinkButton.enter()
|
||||
.append('button')
|
||||
.call(svgIcon('#iD-icon-out-link'))
|
||||
.attr('class', 'form-field-button foreign-id-permalink')
|
||||
@@ -187,9 +186,10 @@ export function uiFieldText(field, context) {
|
||||
}
|
||||
return '';
|
||||
})
|
||||
.merge(outlinkButton);
|
||||
outlinkButton
|
||||
.on('click', function(d3_event) {
|
||||
d3_event.preventDefault();
|
||||
|
||||
var value = validIdentifierValueForLink();
|
||||
if (value) {
|
||||
var url = field.urlFormat.replace(/{value}/, encodeURIComponent(value));
|
||||
|
||||
Reference in New Issue
Block a user