mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-24 18:12:48 +03:00
Merge pull request #5123 from gitbutlerapp/fix-state-update-for-PR-modal-title
fix: Title state update for the PR modal
This commit is contained in:
commit
ae283c4a65
@ -129,7 +129,12 @@
|
||||
|
||||
// Fetch PR template content
|
||||
$effect(() => {
|
||||
if ($prService && pullRequestTemplateBody === undefined && prTemplatePath) {
|
||||
if (
|
||||
modal?.imports.open &&
|
||||
$prService &&
|
||||
pullRequestTemplateBody === undefined &&
|
||||
prTemplatePath
|
||||
) {
|
||||
$prService.pullRequestTemplateContent(prTemplatePath, project.id).then((template) => {
|
||||
pullRequestTemplateBody = template;
|
||||
});
|
||||
@ -358,7 +363,7 @@
|
||||
placeholder="PR title"
|
||||
value={actualTitle}
|
||||
readonly={!isEditing || isPreviewOnly}
|
||||
on:change={(e) => {
|
||||
on:input={(e) => {
|
||||
inputTitle = e.detail;
|
||||
}}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user