Wijmo InputDate SelectionMode Monthly Not Working

Posted by: dharric on 7 August 2018, 5:46 am EST

    • Post Options:
    • Link

    Posted 7 August 2018, 5:46 am EST

    I am using the react controls and am trying to set an InputDate using the monthly view. When I set the control it continues to show the daily view. I tried using selectionMode=‘Month’ and selectionMode={2} Here’s the jsx code.

    <InputDate 
                                    id="mmPeriodDate"
                                    min={ this.state.minDate }
                                    max={ this.state.maxDate } 
                                    valueChanged={ this.mmPeriodDateChanged }
                                    value={this.state.marketingMaterial.periodDate}
                                    format='MMM yyyy'
                                    selectionMode='Month' />
    
  • Posted 7 August 2018, 9:43 pm EST

    Hi,

    We are sorry, we are unable to replicate the issue at our end with build version 5.20182.500.

    We tried to create an InputDate control in react and set its selectionMode property to ‘Month’ and format to ‘MMM yyyy’.

    Following is the sample used:-

    https://stackblitz.com/edit/react-dhcglz?file=index.js

    Please have a look at it and let us know if there are any additional steps to replicate the issue.

    P.S. We tested it on Chrome, Firefox, Edge, and IE on Windows 10, if the problem is for the specific environment then please let us know your environment along with the Wijmo build version so that we may test it with the same environment.

    ~Manish

  • Posted 8 August 2018, 6:00 am EST

    My apologies seems like my webpack server was having issues. I shut it down and restarted and it works now. Thank you.

  • Posted 8 August 2018, 8:22 pm EST

    Hi,

    We are glad to hear that your issue has been resolved and thanks for notifying us.

    ~Manish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels