You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello and first of all thanks, it's a nice feature.
I'm having this issue:
When I select and number of stars the format do not change at the first click (generally), I need to press several times.
And the principal issue is that after rate when I begin typing at next input the format disappear.
It doesn't behave like the secondExample : Thanks in advance!
constsecondExample={size: 50,count: 10,char: '',color1: '#ff9900',color2: '#6599ff',onChange: newValue=>{console.log(`Example 2: new value is ${newValue}`)}}
This is my code:
functionEditReview({editReview, user, product}){const[show,setShow]=useState(false);const[stars,setStars]=useState(0);const[description,setDescription]=useState('');consthandleOnclick=(e)=>{e.preventDefault();setShow(true);}consthandleOnChange=(e)=>{e.preventDefault();setDescription(e.target.value)console.log(e.target.value)}consthandleOnSubmit=(e)=>{e.preventDefault();constreview={description: description,qualification: Math.round(stars),userdId: user.id};constid=product.ideditReview(id,review);setShow(false);}conststar={count:5,onChange: stars=>setStars(stars),size: 74,color2: '#8a2be2',half: false,}return(<React.Fragment><ButtononClick={(e)=>handleOnclick(e)}className="">Edit review
</Button><Modalshow={show}onHide={()=>setShow(false)}keyboard={true}animation={true}centered={true}><Modal.HeadercloseButton={true}closeLabel={'Close'}><Modal.Title>Change your review</Modal.Title></Modal.Header><Modal.Body><h4>Rate the product.</h4><Form><ReactStars{...star}/><hr/><h4>The new product review?</h4><InputGroup><InputGroup.Prepend><InputGroup.Text>Your review</InputGroup.Text></InputGroup.Prepend><FormControlas="textarea"aria-label="Description"placeholder="I hope it's for better"onChange={e=>handleOnChange(e)}/></InputGroup></Form></Modal.Body>
// ...
The text was updated successfully, but these errors were encountered:
Hello and first of all thanks, it's a nice feature.
I'm having this issue:
When I select and number of stars the format do not change at the first click (generally), I need to press several times.
And the principal issue is that after rate when I begin typing at next input the format disappear.
It doesn't behave like the
secondExample
:Thanks in advance!
This is my code:
The text was updated successfully, but these errors were encountered: