Skip to content

Commit 5c1e54d

Browse files
Merge branch 'master' of https://github.com/primefaces/primeng
2 parents a7bf5c6 + e5f8b04 commit 5c1e54d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/primeng/src/confirmdialog/confirmdialog.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,10 @@ export class ConfirmDialog extends BaseComponent implements OnInit, OnDestroy {
312312
* Allows getting the position of the component.
313313
* @group Props
314314
*/
315-
@Input() get position(): string {
315+
@Input() get position() {
316316
return this._position;
317317
}
318-
set position(value: string) {
318+
set position(value: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'topleft' | 'topright' | 'bottomleft' | 'bottomright') {
319319
this._position = value;
320320

321321
switch (value) {
@@ -404,7 +404,7 @@ export class ConfirmDialog extends BaseComponent implements OnInit, OnDestroy {
404404

405405
preWidth: number | undefined;
406406

407-
_position: string = 'center';
407+
_position: 'center' | 'top' | 'bottom' | 'left' | 'right' | 'topleft' | 'topright' | 'bottomleft' | 'bottomright' = 'center';
408408

409409
transformOptions: any = 'scale(0.7)';
410410

@@ -506,7 +506,7 @@ export class ConfirmDialog extends BaseComponent implements OnInit, OnDestroy {
506506
}
507507

508508
option(name: string, k?: string) {
509-
const source: { [key: string]: any } = this || this;
509+
const source: { [key: string]: any } = this;
510510
if (source.hasOwnProperty(name)) {
511511
if (k) {
512512
return source[k];

packages/primeng/src/confirmpopup/confirmpopup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export class ConfirmPopup extends BaseComponent implements AfterContentInit, OnD
277277
}
278278

279279
option(name: string, k?: string) {
280-
const source: { [key: string]: any } = this || this;
280+
const source: { [key: string]: any } = this;
281281
if (source.hasOwnProperty(name)) {
282282
if (k) {
283283
return source[k];

0 commit comments

Comments
 (0)