Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

More problems found about Ons-Speed-Dial



  • Re: Ons-Speed-Dial Fab does not stay at fixed position.

    Today I found some more problems about Ons-Speed-Dial

    1. document.querySelector(‘ons-fab’).disabled is not working

    2. document.querySelector(‘ons-fab’).setAttribute(‘disabled’)
      document.querySelector(‘ons-fab’).setAttribute(‘disabled’, ‘true’)
      These two scripts work fine.

    3. document.querySelector(‘ons-fab’).setAttribute(‘disabled’, ‘false’)
      But this script also sets ons-fab disabled, so how to enable it again?

    Best Regards
    Gobi


  • administrators

    I tested with document.querySelector('ons-fab').disabled = true and it seems to be working.

    If you are setting the HTML disabled attribute (which is different from the disabled property but achieves the same effect), you can remove it using the removeAttribute method.

    document.querySelector(‘ons-fab’).setAttribute(‘disabled’, ‘false’) does not work because HTML attributes are set as long as they have any value, including the string 'false'.