mail page fix
This commit is contained in:
parent
bf90acca90
commit
3ca31e0b4b
@ -1362,7 +1362,7 @@ export default function CourrierPage() {
|
||||
};
|
||||
|
||||
// Add handleReply function
|
||||
const handleReply = async (type: 'reply' | 'reply-all' | 'forward') => {
|
||||
const handleReply = (type: 'reply' | 'reply-all' | 'forward') => {
|
||||
if (!selectedEmail) return;
|
||||
|
||||
const getReplyTo = () => {
|
||||
@ -1397,10 +1397,12 @@ export default function CourrierPage() {
|
||||
setComposeSubject(replyEmail.subject);
|
||||
setComposeBody(replyEmail.body);
|
||||
|
||||
// Set the content directly on the div
|
||||
if (composeBodyRef.current) {
|
||||
composeBodyRef.current.innerHTML = replyEmail.body;
|
||||
}
|
||||
// Set the content directly on the div with a slight delay to ensure the component is mounted
|
||||
setTimeout(() => {
|
||||
if (composeBodyRef.current) {
|
||||
composeBodyRef.current.innerHTML = replyEmail.body;
|
||||
}
|
||||
}, 0);
|
||||
|
||||
setComposeBcc('');
|
||||
|
||||
|
||||
@ -229,7 +229,8 @@ export default function ComposeEmail({
|
||||
minHeight: '200px',
|
||||
padding: '1rem',
|
||||
border: '1px solid #e5e7eb',
|
||||
borderRadius: '0.375rem'
|
||||
borderRadius: '0.375rem',
|
||||
color: '#111827' // text-gray-900
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user