Skip to content

Commit

Permalink
Unset required attribute when switching to event model
Browse files Browse the repository at this point in the history
  • Loading branch information
joedolson committed Nov 4, 2024
1 parent c4ddaf9 commit 734ec5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/pricing-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
if ( 'event' === model ) {
$( '.mt-ticket-form .type-selector').hide();
$( '.mt-ticket-form .mt-ticket-data').hide();
$('.mt-ticket-data input').removeAttr('required').attr( 'disabled', 'disabled' );
} else {
$( '.mt-ticket-form .type-selector').show();
$( '.mt-ticket-form .mt-ticket-data').show();
Expand Down

0 comments on commit 734ec5f

Please sign in to comment.