Compare commits
2 Commits
issue/182-
...
32f0c4c4d4
| Author | SHA1 | Date | |
|---|---|---|---|
| 32f0c4c4d4 | |||
| 6a520ef6b1 |
@@ -688,6 +688,12 @@ export function ContenidoTematico() {
|
|||||||
>
|
>
|
||||||
{({ handleRef }) => (
|
{({ handleRef }) => (
|
||||||
<>
|
<>
|
||||||
|
{index === 0 && (
|
||||||
|
<InsertUnidadOverlay
|
||||||
|
position="top"
|
||||||
|
onInsert={() => insertUnidadAt(index)}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<InsertUnidadOverlay
|
<InsertUnidadOverlay
|
||||||
position="bottom"
|
position="bottom"
|
||||||
onInsert={() => insertUnidadAt(index + 1)}
|
onInsert={() => insertUnidadAt(index + 1)}
|
||||||
|
|||||||
@@ -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