Skip to content

Commit

Permalink
feat: adding a new component that will put weight in slider-range
Browse files Browse the repository at this point in the history
fix issue-26 devhatt#26
  • Loading branch information
anthonymanoel committed Jan 10, 2024
1 parent 9f02053 commit 8397944
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/components/PetRegist/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable prettier/prettier */
import { Component } from 'pet-dex-utilities';
import './index.scss';
import Bars from './Bars.svg';
Expand Down Expand Up @@ -35,8 +36,7 @@ Slider.prototype = Object.assign(Slider.prototype, Component.prototype, {
this.selected.get('weight').textContent = Text;
},
setValue() {
this.selected.get('weight').textContent =
this.selected.get('rangeSlider').value;
this.selected.get('weight').textContent = this.selected.get('rangeSlider').value;
},
weight() {
this.emit('weight');
Expand All @@ -45,6 +45,3 @@ Slider.prototype = Object.assign(Slider.prototype, Component.prototype, {
this.enable = false;
},
});

// always start w/ const if will need changes, u made it.
// forget .innerHTML uses textContent or innerText

0 comments on commit 8397944

Please sign in to comment.