Rafal Szczypka
Rafal Szczypka
This works but only when done this way ``` "rules": { "no-unsanitized/method": ["error", { "escape": { "methods": ["this.domSanitizer.sanitize"] } }], "no-unsanitized/property": ["error", { "escape": { "methods": ["this.domSanitizer.sanitize"] } }], }
Thanks, https://github.com/toverux/ngsweetalert2 is great but it doesn't show me how to do the stuff I want to achieve. I already posted on stackoverflow: https://stackoverflow.com/questions/45500265/how-to-pass-angular-selector-as-html-option-of-sweetalert2
I have done it like that using Intl: https://www.npmjs.com/package/intl ``` import { translateField as t } from 'Intl/IntlSetup'; const tableColumns = [ { property: 'positionNumber', header: { label: t('Positions.Label.positionNumber') },...
hi @JosephEarl , I solved a similar problem to yours using this approach: https://github.com/erikras/redux-form/issues/1500#issuecomment-238624882
Thanks @jochienabuurs , I did exactly that. After installing the handy numeral library (http://numeraljs.com/) I did it like that: ``` import React, {Component} from 'react'; import {Field, reduxForm} from 'redux-form';...
No, the input type is still `text` though I'm using material-ui (http://redux-form.com/6.4.1/examples/material-ui/) and that's why the `component` prop is set to `TextField`
Ah, true, so much changes on the way... It should probably look like that: ``` import React, {Component} from 'react'; import {Field, reduxForm} from 'redux-form'; import numeral from 'numeral'; const...
@gustavohenke yes and no. In this particular example it works but when I try to use format, parse and normalize together very often it breaks. Eg. when I tried different...
Thanks, I'll check that soon.
Hi @gustavohenke, you were right of course. I can just do ``` componentWillUnmount() { if(this.props.valid && this.props.dirty) { this.props.handleSubmit(); } } ``` in my form component and it works. Thank...