I found the solution in
vendor/magento/module-ui/view/base/web/js/form/components/tab_group.js.
There is one function called which activates first tab by default.
/**
* Activates element if one is first or if one has 'active' propert
* set to true.
*
* @param {Object} elem
* @returns {Object} - reference to instance
*/
initActivation: function (elem) {
var elems = this.elems(),
isFirst = !elems.indexOf(elem);
if (isFirst || elem.active()) {
elem.activate();
}
return this;
},
I just changed that condition as I needed like below
/**
* Activates element if one is first or if one has 'active' propert
* set to true.
*
* @param {Object} elem
* @returns {Object} - reference to instance
*/
initActivation: function (elem) {
var elems = this.elems(),
isFirst = !elems.indexOf(elem);
if (elem.index == 'customer' && elem.ns == 'customer_form') {
elem.activate();
} else if (isFirst || elem.active()) {
elem.activate();
}
return this;
},
Make sure you override this file. Hope it will help others. Happy Coding :)