aurelia / dialog

A dialog plugin for Aurelia.
MIT License
106 stars 115 forks source link

Plugin setting configurations not working #355

Closed TomStark16 closed 5 years ago

TomStark16 commented 5 years ago

I'm submitting a bug report

Please tell us about your environment:

Current behavior:

  1. Default settings are configured for the aurelia-dialog with "lock" set to false so the "X" close button should show. eg:

`import { FrameworkConfiguration } from "aurelia-framework";

export const configure = (aurelia: FrameworkConfiguration, config: any) => { aurelia .plugin('aurelia-dialog', (dConfig: any) => { dConfig.useDefaults(); dConfig.settings.lock = false; dConfig.settings.showCloseButton = true; dConfig.settings.centerHorizontalOnly = true; dConfig.settings.centerVerticalOnly = true; dConfig.settings.startingZIndex = 1000; }) .plugin('aurelia-validation'); }; `

  1. When we import DialogService and call "open({viewModel, model})" the "X" button is not appearing. Debugging up to this point shows that this.dialogService.defaultSettings.lock = true (not set to false like we have configured in the plugin's default settings).

Expected/desired behavior: For the Close button to show.

StrahilKazlachev commented 5 years ago

lock has been deprecated(not remove), since v1.0.0-rc.1.0.0 - use keyboard and overlayDismiss. showCloseButton - this is undocumented @bindable property of <ux-dialog-header>, it isn't a general dialog setting.