- posisble fix for auto translation bug in editor component;
This commit is contained in:
@@ -65,6 +65,7 @@ const Wysiwyg = ({
|
|||||||
outlined
|
outlined
|
||||||
onClick={handleCleanValue}
|
onClick={handleCleanValue}
|
||||||
/> : null}
|
/> : null}
|
||||||
|
<div translate="no">
|
||||||
<Controller
|
<Controller
|
||||||
name={fieldName}
|
name={fieldName}
|
||||||
control={control}
|
control={control}
|
||||||
@@ -93,8 +94,10 @@ const Wysiwyg = ({
|
|||||||
className={classNames({ 'p-invalid': fieldState.invalid })}
|
className={classNames({ 'p-invalid': fieldState.invalid })}
|
||||||
/>
|
/>
|
||||||
)}/>
|
)}/>
|
||||||
|
</div>
|
||||||
{infoText ? <small>{infoText}</small> : null}
|
{infoText ? <small>{infoText}</small> : null}
|
||||||
</>)
|
</>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Wysiwyg;
|
export default Wysiwyg;
|
||||||
@@ -470,6 +470,7 @@ const BandoViewBeneficiario = () => {
|
|||||||
<h2>{__('Non hai trovato la risposta che cercavi?', 'gepafin')}</h2>
|
<h2>{__('Non hai trovato la risposta che cercavi?', 'gepafin')}</h2>
|
||||||
<div className="appForm__field">
|
<div className="appForm__field">
|
||||||
<label htmlFor="newQuestion">{__('Fai una domanda', 'gepafin')}</label>
|
<label htmlFor="newQuestion">{__('Fai una domanda', 'gepafin')}</label>
|
||||||
|
<div translate="no">
|
||||||
<Editor
|
<Editor
|
||||||
id="newQuestion"
|
id="newQuestion"
|
||||||
value={newQuestion}
|
value={newQuestion}
|
||||||
@@ -479,6 +480,7 @@ const BandoViewBeneficiario = () => {
|
|||||||
style={{ height: 80 * 3 }}
|
style={{ height: 80 * 3 }}
|
||||||
aria-describedby="newQuestion-help"
|
aria-describedby="newQuestion-help"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
<small id="newQuestion-help">
|
<small id="newQuestion-help">
|
||||||
{__('Riceverai una notifica quando ti risponderemo', 'gepafin')}
|
{__('Riceverai una notifica quando ti risponderemo', 'gepafin')}
|
||||||
</small>
|
</small>
|
||||||
|
|||||||
Reference in New Issue
Block a user