Commit tags on blur


Topic: Commit tags on blur

kmckinley pro asked 8 years ago

Is there currently a way to enable tags to commit onblur? I'm using MDB with Angular2. Currently I've modified the mdb.js file with the below code to make it work. But would prefer there to be a way to enable this so I don't lose these changes the next time I update the MDB files. self.$document.on('focusout', SELS.CHIPS + ' ' + SELS.INPUT, function (e) { var $target = $(e.target) var $chips = $target.closest(SELS.CHIPS) var chipsIndex = $chips.data('index') var chipsLength = $chips.children(SELS.CHIP).length self.addChip(chipsIndex, { tag: $target.val() }, $chips) $target.val('') $(e.target).closest(SELS.CHIPS).removeClass('focus') })
Hi kmckinley, I'm sorry but we don’t provide official support for Angular. Although many of our users use MDB with angular, they need to do it on their own. Regards
Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags