Closed wetternest closed 7 years ago
Not sure what issue you are having, but you can set both buttons and blurElem in the config options, see the documentation.
setting buttons = 'no' deactivates editableOptions.blurElem
self.editorEl.attr('blur', self.attrs.blur || (self.buttons === 'no' ? 'cancel' : editableOptions.blurElem));
see code at https://github.com/vitalets/angular-xeditable/blob/master/src/js/editable-element/controller.js#L283
shure one can set self.attrs.blur
for every element, but setting this in the editableOptions for all elements at once would be much more convenient!
What do you think that line of code should be in order for both to work together?
@wetternest this should be fixed now, can you retest.
thank you for your fix! i will test it as soon as possible, unfortunately i don’t have much time at the moment =(
@eugef please close, this issue is fixed.
https://github.com/vitalets/angular-xeditable/blob/master/src/js/editable-element/controller.js#L271
why am i not allowed to set
buttons='no'
ANDblurElem='submit'
via config? how are user supposed to submit then? (i know that i can override this option for every editable with the attributeblur="submit"
, but this option seems not very practical....)