Skip to content

Commit

Permalink
Fixing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed May 22, 2024
1 parent 23806c8 commit f291e01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Webform.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export default class Webform extends NestedDataComponent {
* @param {HTMLElement | object | import('Form').FormOptions} [elementOrOptions] - The DOM element to render this form within or the options to create this form instance.
* @param {import('Form').FormOptions} [options] - The options to create a new form instance.
*/
constructor(elementOrOptions, options = {}) {
constructor(elementOrOptions, options = undefined) {
let element, formOptions;
if (elementOrOptions instanceof HTMLElement || options) {
element = elementOrOptions;
Expand Down
2 changes: 1 addition & 1 deletion src/Wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class Wizard extends Webform {
* - buttonSettings.show*(Previous, Next, Cancel): true (default) - determines if the button is shown.
* - allowPrevious: false (default) - determines if the breadcrumb bar is clickable for visited tabs.
*/
constructor(elementOrOptions, _options = {}) {
constructor(elementOrOptions, _options = undefined) {
let element, options;
if (elementOrOptions instanceof HTMLElement || options) {
element = elementOrOptions;
Expand Down

0 comments on commit f291e01

Please sign in to comment.