fix #189: Se arregló un bug en el que no se podía poner espacios al editar la editorial de una referencia
This commit was merged in pull request #190.
This commit is contained in:
@@ -2036,6 +2036,12 @@ function DatosBasicosManualStep({
|
|||||||
publisher: e.target.value.slice(0, 300),
|
publisher: e.target.value.slice(0, 300),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
onBlur={() => {
|
||||||
|
const trimmed = draft.publisher.trim()
|
||||||
|
if (trimmed !== draft.publisher) {
|
||||||
|
onChangeDraft({ ...draft, publisher: trimmed })
|
||||||
|
}
|
||||||
|
}}
|
||||||
maxLength={300}
|
maxLength={300}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -2434,9 +2440,17 @@ const FormatoYCitasStep = forwardRef<
|
|||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const raw = e.currentTarget.value.slice(0, 300)
|
const raw = e.currentTarget.value.slice(0, 300)
|
||||||
onChangeRef(r.id, {
|
onChangeRef(r.id, {
|
||||||
publisher: raw.trim() || undefined,
|
publisher: raw.length > 0 ? raw : undefined,
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
|
onBlur={() => {
|
||||||
|
const trimmed = publisherText.trim()
|
||||||
|
if (trimmed !== publisherText) {
|
||||||
|
onChangeRef(r.id, {
|
||||||
|
publisher: trimmed || undefined,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user