Skip to content

Commit 4af2045

Browse files
authored
Merge pull request #264 from harunurhan/fix-bugs
Fix bugs
2 parents 2c300ec + dd53047 commit 4af2045

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/add-new-element-button/add-new-element-button.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ $button-font-size: 13px;
22

33
div.button-container {
44
display: inline-block;
5+
width: 100%;
56
}
67

78
.btn-new-field {

src/find-replace/find-replace.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ export class FindReplaceComponent {
6060
}
6161

6262
findAndReplace() {
63+
if (!(this.find && this.replace)) {
64+
return;
65+
}
6366
let value = this.jsonStoreService.getIn(this.path);
6467
let result = this.findReplaceAllService
6568
.findReplaceInImmutable(value, this.schema, this.find, this.replace, this.exactPhrase);

src/sub-record/sub-record.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<button type="button" class="editor-btn-delete editor-btn-delete-text" (click)="deleteField(key)">Delete</button>
2020
</li>
2121
<li class="divider"></li>
22-
<li class="title-dropdown-item">
22+
<li class="title-dropdown-item" (click)="$event.stopPropagation()">
2323
<find-replace [path]="getPathForField(key)" [schema]="schema.properties[key]"></find-replace>
2424
</li>
2525
</title-dropdown>

0 commit comments

Comments
 (0)