Skip to content

Commit

Permalink
Fix size picker display for pen size > 4
Browse files Browse the repository at this point in the history
  • Loading branch information
juliandescottes committed Nov 24, 2018
1 parent 66452de commit c5c8184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/widgets/SizePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
pskl.utils.Dom.removeClass('selected', this.container);
var selectedOption;
selectedOption = this.container.querySelector('[data-size="' + size + '"]');
if (typeof selectedOption === 'undefined') {
if (!selectedOption) {
selectedOption = this.container.querySelector('[data-size]:last-child');
selectedOption.classList.add('labeled');
selectedOption.setAttribute('real-size', size);
Expand Down

0 comments on commit c5c8184

Please sign in to comment.